devDept.Eyeshot.Entities.Region front = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D[]{
new Point2D(0,0),
new Point2D(12.5,0),
new Point2D(12.5-5,8),
new Point2D(17.5,8),
new Point2D(17.5,16),
new Point2D(-17.5,16),
new Point2D(-17.5,8),
new Point2D(-12.5+5,8),
new Point2D(-12.5,0)
});
Brep ext1 = front.ExtrudeAsBrep(70);
CompositeCurve cc1 = new CompositeCurve(
new Line(17.5, -70, 16, 17.5, -46, 16),
new Line(17.5, -46, 16, 17.5, -46, 28),
new Arc(Plane.YZ, new Point3D(17.5, -58, 28), 12, 0, Math.PI),
new Line(17.5, -70, 28, 17.5, -70, 16)
);
Circle c1 = new Circle(Plane.YZ, new Point3D(17.5, -58, 28), 6);
devDept.Eyeshot.Entities.Region r1 = new devDept.Eyeshot.Entities.Region(cc1, c1);
ext1.ExtrudeAdd(r1, -10);
CompositeCurve cc2 = new CompositeCurve(
new Line(-17.5, -70, 16, -17.5, -46, 16),
new Line(-17.5, -46, 16, -17.5, -46, 28),
new Arc(Plane.YZ, new Point3D(-17.5, -58, 28), 12, 0, Math.PI),
new Line(-17.5, -70, 28, -17.5, -70, 16)
);
Circle c2 = new Circle(Plane.YZ, new Point3D(-17.5, -58, 28), 6);
devDept.Eyeshot.Entities.Region r2 = new devDept.Eyeshot.Entities.Region(cc2, c2);
ext1.ExtrudeAdd(r2, 10);
devDept.Eyeshot.Entities.Region slot = devDept.Eyeshot.Entities.Region.CreateSlot(0, 0, 16, 6.5);
slot.Rotate(Math.PI / 2.0, new Vector3D(0, 0, 1));
slot.Translate(0, -28.5, 16);
ext1.ExtrudeRemove(slot, -20);
design1.Entities.Add(ext1, Color.MediumSlateBlue);
Part2

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.