Ashtray

devDept.Eyeshot.Entities.Region reg1 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D[]{
    new Point2D(0, -40),
    new Point2D(100, -40),
    new Point2D(100, 0),
    new Point2D(80, 0),
    new Point2D(80, -30),
    new Point2D(0, -30)});

Brep rev1 = reg1.RevolveAsBrep(Utility.DegToRad(360), Vector3D.AxisZ, Point3D.Origin);

devDept.Eyeshot.Entities.Region cr2 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.YZ, 0, 0, 10);
rev1.ExtrudeRemove(cr2, new Interval(-120, 120));

devDept.Eyeshot.Entities.Region cr1 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XZ, 0, 0, 10);
rev1.ExtrudeRemove(cr1, new Interval(-120, 120));

design1.Entities.Add(rev1, design1.Layers[0].Name, Color.DarkCyan);

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section

See more