Ashtray

LinearPath lp1 = new LinearPath(Plane.XZ, new Point2D(0, -40), new Point2D(100, -40), new Point2D(100, 0), new Point2D(80, 0), new Point2D(80, -30), new Point2D(0, -30), new Point2D(0, -40));

Region reg1 = new Region(lp1);

Solid3D rev1 = reg1.RevolveAsSolid3D(Utility.DegToRad(360), Vector3D.AxisZ, Point3D.Origin);

viewportLayout.Entities.Add(rev1, 0, Color.DarkCyan);

CircularRegion cr2 = new CircularRegion(Plane.YZ, 0, 0, 10);

rev1.ExtrudeRemove(cr2, new Interval(-120, 120));

CircularRegion cr1 = new CircularRegion(Plane.XZ, 0, 0, 10);

rev1.ExtrudeRemove(cr1, new Interval(-120, 120));

viewportLayout.Entities.Regen();
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.