// Main polygon
devDept.Eyeshot.Entities.Region reg1 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D[]{
new Point2D(0, 0),
new Point2D(92, 0),
new Point2D(92, 13),
new Point2D(19,13),
new Point2D(19, 129),
new Point2D(6, 129),
new Point2D(6, 113.5),
new Point2D(10, 113.5),
new Point2D(10, 100.5),
new Point2D(6, 100.5),
new Point2D(6, 13),
new Point2D(0, 13)
});
Brep ext1 = reg1.ExtrudeAsBrep(new Interval(-104, 0));
// Triangle
devDept.Eyeshot.Entities.Region r1 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D[]{
new Point2D(19, 13),
new Point2D(82, 13),
new Point2D(19, 76)
});
// Add triangle to main polygon
ext1.ExtrudeAdd(r1, new Interval(-22, -16));
// Arc and Step
CompositeCurve cc1 = new CompositeCurve(
new Line(Plane.YZ, 38, 0, 38, 13),
new Line(Plane.YZ, 38, 13, 29, 13),
new Arc(Plane.YZ, new Point2D(104, 13), 75, Utility.DegToRad(180), Utility.DegToRad(90)),
new Line(Plane.YZ, 104, 88, 104, 0),
new Line(Plane.YZ, 104, 0, 38, 0));
devDept.Eyeshot.Entities.Region r2 = new devDept.Eyeshot.Entities.Region(cc1);
ext1.ExtrudeRemove(r2, new Interval(-92, 0));
// Slot
devDept.Eyeshot.Entities.Region slot = devDept.Eyeshot.Entities.Region.CreateSlot(Plane.YZ, 28, 107, 50, 6.5, 0, false);
ext1.ExtrudeRemove(slot, new Interval(10, 19));
design1.Entities.Add(ext1, design1.Layers[0].Name, Color.LightCoral);
Modeling Practice Drawings 101
Paolo Bencivenni
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.