Primitive entity
Previous Topic  Next Topic 

 

 

Box

 

 

 

 

          // Create a solid box

          fDrawCtrl1.Document.AddSolidBox(new Point3D(20, 20, 0), 10, 10, 10);

 

 

 

Cone

 

 

 

 

           // Create a solid cone

           fDrawCtrl1.Document.AddSolidCone(new Point3D(0, 15, 0), 10, 10, 20);

 

 

 

Cylinder

 

 

 

 

        // Create a solid cylinder

        fDrawCtrl1.Document.AddSolidCylinder(new Point3D(0, -20, 0), 10, 20, 20);

 

 

 

Torus

 

 

 

          // Create a solid torus

          fDrawCtrl1.Document.AddSolidTorus(new Point3D(-20, -20, 0), 10, 5, 20, 20);

 

 

 

Sphere

 

 

 

 

      // Create a solid sphere.

      fDrawCtrl1.Document.AddSolidSphere(new Point3D(0, 0, 0), 10);