Flange

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

CompositeCurve cc1 = new CompositeCurve(
    new Line(Plane.XZ, 15, 40, 29, 40),
    new Arc(Plane.XZ, new Point2D(29, 39), 1, 0, Utility.DegToRad(90)),
    new Line(Plane.XZ, 30, 39, 30, 16),
    new Arc(Plane.XZ, new Point2D(36, 16), 6, Math.PI, Utility.DegToRad(270)),
    new Line(Plane.XZ, 36, 10, 79, 10),
    new Arc(Plane.XZ, new Point2D(79, 9), 1, 0, Utility.DegToRad(90)),
    new Line(Plane.XZ, 80, 9, 80, 6),
    new Arc(Plane.XZ, new Point2D(86, 6), 6, Utility.DegToRad(180), Utility.DegToRad(270)),
    new Line(Plane.XZ, 86, 0, 130, 0));

devDept.Eyeshot.Entities.Region reg = cc1.OffsetToRegion(5, 0, false);
Brep rev1 = reg.RevolveAsBrep(Math.PI * 2, Vector3D.AxisZ, Point3D.Origin);

devDept.Eyeshot.Entities.Region cssr1 = devDept.Eyeshot.Entities.Region.CreateCircularSlot(0, Utility.DegToRad(30), 60, 8);
rev1.ExtrudeRemovePattern(cssr1, new Interval(0, 50), Point3D.Origin, Utility.DegToRad(360) / 3, 3);

devDept.Eyeshot.Entities.Region rr1 = devDept.Eyeshot.Entities.Region.CreateRectangle(90, -40, 50, 80);
rev1.ExtrudeRemovePattern(rr1, new Interval(0, 50), Point3D.Origin, Utility.DegToRad(360) / 2, 2);

devDept.Eyeshot.Entities.Region cr1 = devDept.Eyeshot.Entities.Region.CreateCircle(110, 0, 10);
const int numHoles = 8;
rev1.ExtrudeRemovePattern(cr1, 50, Point3D.Origin, Utility.DegToRad(360) / numHoles, numHoles);
model1.Entities.Add(rev1, model1.Layers[0].Name, Color.Aqua);

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.