CompositeCurve cc1 = new CompositeCurve(
new Line(65, 0, 0, -65, 0, 0),
new Arc(Plane.XY, new Point3D(-45, 0, 0), 20, Math.PI, 3 * Math.PI / 2.0),
new Line(-45, -20, 0, 65, -20, 0),
new Line(65, -20, 0, 65, 0, 0)
);
devDept.Eyeshot.Entities.Region r1 = new devDept.Eyeshot.Entities.Region(cc1);
Brep ext1 = r1.ExtrudeAsBrep(100);
CompositeCurve cc2 = new CompositeCurve(
new Line(45, 0, 0, 65, 0, 0),
new Line(65, 0, 0, 65, 70, 0),
new Arc(Plane.XY, new Point3D(25, 70, 0), 40, 0, Math.PI / 2),
new Line(25, 110, 0, 25, 90, 0),
new Arc(Plane.XY, new Point3D(25, 70, 0), 20, 0, Math.PI / 2),
new Line(45, 70, 0, 45, 0, 0)
);
devDept.Eyeshot.Entities.Region r2 = new devDept.Eyeshot.Entities.Region(cc2);
ext1.ExtrudeAdd(r2, 20);
CompositeCurve cc3 = new CompositeCurve(
new Line(25, 0, 60, 25 - 70 + 20, 0, 60),
new Arc(Plane.XZ, new Point3D(25 - 70 + 20, 0, 80), 20, Math.PI, 3 * Math.PI / 2.0),
new Line(-45, 0, 80, -45, 0, 100),
new Line(-45, 0, 100, -65, 0, 100),
new Line(-65, 0, 100, -65, 0, 80),
new Arc(Plane.XZ, new Point3D(25 - 70 + 20, 0, 80), 40, Math.PI, 3 * Math.PI / 2.0),
new Line(25 - 70 + 20, 0, 40, 25, 0, 40),
new Line(25, 0, 40, 25, 0, 60)
);
devDept.Eyeshot.Entities.Region r3 = new devDept.Eyeshot.Entities.Region(cc3);
Arc a1 = new Arc(Plane.YZ, new Point2D(70, 20), new Point2D(70 + 40, 20), new Point2D(70, 60));
a1.Translate(25, 0, 0);
CompositeCurve path = new CompositeCurve(
new Line(25, 0, 60, 25, 70, 60),
a1,
new Line(25, 70 + 40, 20, 25, 70 + 40, 0)
);
ext1.SweepAdd(r3, path);
design1.Entities.Add(ext1, Color.Purple);
Modeling Practice Drawings 57

Davide Angiolini
This content is available only to customers with an active subscription. Please ensure your subscription is current to access this article.
Please sign in to access this article.
If you believe this is an error, please contact our support team for assistance.
Comments
Please sign in to leave a comment.