Revolve Solid
Previous Topic  Next Topic 

 

Revolved Solid

 

Creates a revolved solid.

 

 

 

            sdLwPolyline poly = fDrawCtrl1.Document.CreateLwPolyline();

            poly.AddVertex(new Point3D(0, 0, 0));

            poly.AddVertex(new Point3D(10, -15, 0));

            poly.AddVertex(new Point3D(10, 15, 0));

            poly.AddVertex(new Point3D(0, 10, 0));

 

            poly.Closed = true;

            poly.FilletRadius(4);

            sd3dSolid solid = fDrawCtrl1.Document.AddSolidRevolved(poly, 30, 270, new Point3D(25, 0, 0), Point3D.UnitY);

 

            // Dispose the entity which is no longer needed.

            poly.Dispose();