Part 5

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

Line l1 = new Line(40, 6, 40, 20);
Arc a1 = new Arc(0, -56, 0, 80, Utility.DegToRad(50), Utility.DegToRad(130));
Curve.Trim(l1, a1, false, true);

Line l2 = new Line(-40, 20, -40, 6);
Curve.Trim(a1, l2, false, true);

CompositeCurve cc1 = new CompositeCurve(
    new Line(-35, 0, -35, 6),
    new Line(-35, 6, -40, 6),
    l1, a1, l2,
    new Line(40, 6, 35, 6),
    new Line(35, 6, 35, 0),
    new Line(35, 0, -35, 0));

devDept.Eyeshot.Entities.Region reg1 = new devDept.Eyeshot.Entities.Region(cc1, Plane.XY);
Brep ext1 = reg1.ExtrudeAsBrep(38);

devDept.Eyeshot.Entities.Region ssr1 = devDept.Eyeshot.Entities.Region.CreateSlot(Plane.XZ, 0, 19, 24, 5, 0, true);
ext1.ExtrudeRemove(ssr1, -30);

devDept.Eyeshot.Entities.Region rr1 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.YZ, 17, 9, 10, 20);
ext1.ExtrudeRemove(rr1, new Interval(-40, 40));

model1.Entities.Add(ext1, model1.Layers[0].Name, Color.Coral);

mceclip0.png

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.