Ashtray

2019-07-03_8-46-18.png

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));

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

Previous versions of this article: Eyeshot 10

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.