示例#1
0
            public MainFuselage(CockpitFuselage cockpitFuselage)
            {
                XSection = CrossSection(
                    cockpitFuselage.XSectionStart.position,
                    cockpitFuselage.XSection.Vertices.Furthest(Dir3D.Up).First().position.Y,
                    cockpitFuselage.XSection.Vertices.Length);

                var transforms = from z in EnumerableExt.Range(0f, -2f, -0.25f)
                                 select Mat.Translation <Mat4> (0f, 0f, z);

                var paths = EnumerableExt.Append(
                    cockpitFuselage.XSection.MorphTo(XSection, transforms),
                    XSection.Translate(0f, 0f, -6.75f));

                RearXSection = paths.Last();
                Fuselage     = paths.Extrude <V, P> (false, false)
                               .Color(_color);
            }