예제 #1
0
        public static Record3D CreateSideBySideSpheres()
        {
            var      record = new Record3D();
            IScene3D dc     = record;

            for (int i = 0; i < 2; ++i)
            {
                int x = -5 + i * 10;

                dc.DrawSphere((x, 0, -5), 8, (COLOR.Red, COLOR.Blue, 1));
                dc.DrawSphere((x, 0, 5), 8, COLOR.Red);

                dc = new Transforms.Decompose3D(record, 5, 3);
            }

            return(record);
        }
 /// <inheritdoc/>
 public void DrawSurface(ReadOnlySpan <Point3> vertices, SurfaceStyle style)
 {
     _Check(); Decompose3D.DrawSurface(_Target, vertices, style);
 }
 /// <inheritdoc/>
 public void DrawSphere(Point3 center, float diameter, OutlineFillStyle style)
 {
     _Check(); Decompose3D.DrawSphere(_Target, center, diameter, style);
 }
 /// <inheritdoc/>
 public void DrawSegments(ReadOnlySpan <Point3> vertices, float diameter, LineStyle style)
 {
     _Check(); Decompose3D.DrawSegment(_Target, vertices, diameter, style);
 }
예제 #5
0
 public PlaneClip3D(IScene3D target, Plane plane)
 {
     _Target           = target;
     _DecomposedTarget = new Decompose3D(this, 6, 2);
     _Plane            = plane;
 }
 /// <inheritdoc/>
 public void DrawSurface(ReadOnlySpan <Point3> vertices, SurfaceStyle style)
 {
     Decompose3D.DrawSurface(this, vertices, style);
 }
 /// <inheritdoc/>
 public void DrawSphere(Point3 center, float diameter, OutlineFillStyle style)
 {
     Decompose3D.DrawSphere(this, center, diameter, style);
 }
 /// <inheritdoc/>
 public void DrawSegments(ReadOnlySpan <Point3> vertices, float diameter, LineStyle style)
 {
     Decompose3D.DrawSegment(this, vertices, diameter, style);
 }