예제 #1
0
 public TubeDescriptor(float phase = 0, float cycles = 1, float innerRadius = 0.5f, int resolution = 15)
     : base(PrimitiveType.Tube)
 {
     Settings = new SegmentZ()
     {
         Phase = phase, Cycles = cycles, InnerRadius = innerRadius, Resolution = resolution, Z = 1
     };
 }
예제 #2
0
        protected override DX11IndexedGeometry GetGeom(DX11RenderContext context, int slice)
        {
            SegmentZ segment = new SegmentZ()
            {
                Cycles      = this.FInCycles[slice],
                InnerRadius = this.FInInner[slice],
                Phase       = this.FInPhase[slice],
                Resolution  = this.FInRes[slice],
                Z           = this.FInZ[slice]
            };

            return(context.Primitives.SegmentZ(segment));
        }