Brep rev1 = devDept.Eyeshot.Entities.Region.CreateRectangle(200, 80).RevolveAsBrep(-Math.PI, Vector3D.AxisX, Point3D.Origin);
rev1.ExtrudeAddPattern(devDept.Eyeshot.Entities.Region.CreateRectangle(15, 0, 8, 220, 0, true), -120, Utility.DegToRad(1), 16, 8, 10, 1);
LinearPath lp1 = new LinearPath(Plane.YZ,
new Point2D(118, 0),
new Point2D(200, 0),
new Point2D(200, -200),
new Point2D(-200, -200),
new Point2D(-200, 0),
new Point2D(-118, 0),
new Point2D(-98, -110),
new Point2D(+98, -110),
new Point2D(+118, 0));
Line[] lines = lp1.ConvertToLines();
const double filletRadius = 20;
Curve.Fillet(lines[5], lines[6], filletRadius, false, false, true, true, out Arc arc1);
Curve.Fillet(lines[6], lines[7], filletRadius, false, false, true, true, out Arc arc2);
devDept.Eyeshot.Entities.Region reg1 = new devDept.Eyeshot.Entities.Region(new CompositeCurve(lines[0], lines[1], lines[2], lines[3], lines[4], lines[5], arc1, lines[6], arc2, lines[7]));
rev1.ExtrudeRemove(reg1, +200);
devDept.Eyeshot.Entities.Region cr1 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.YZ, 50);
rev1.ExtrudeRemove(cr1, 200);
rev1.ExtrudeRemovePattern(devDept.Eyeshot.Entities.Region.CreateCircle(Plane.YZ, new Point3D(65, 0, 0), 5), 200, 0, new Point3D(0, 0, 0), -Math.PI / 2, 3);
Brep[] union = Brep.Mirror(Plane.XY, rev1);
design1.Entities.AddRange(union, design1.Layers[0].Name, Color.CornflowerBlue);
Previous versions of this article: Eyeshot 10
Comments
Please sign in to leave a comment.