Exercise 10

Exercise10.png

CompositeCurve cc1 = new CompositeCurve(
    new Line(Plane.XZ, 0, 0, 0, 30),
    new Line(Plane.XZ, 0, 30, 70, 30),
    new Line(Plane.XZ, 70, 30, 70, 0),
    new Line(Plane.XZ, 70, 0, 55, 0),
    new Line(Plane.XZ, 55, 0, 55, 15),
    new Line(Plane.XZ, 55, 15, 15, 15),
    new Line(Plane.XZ, 15, 15, 15, 0),
    new Line(Plane.XZ, 15, 0, 0, 0)
);

CompositeCurve cc2 = new CompositeCurve(
    new Line(Plane.XZ, 0, 30, 0, 60),
    new Line(Plane.XZ, 0, 60, 20, 60),
    new Line(Plane.XZ, 20, 60, 60, 40),
    new Line(Plane.XZ, 60, 40, 60, 30),
    new Line(Plane.XZ, 60, 30, 0, 30)
);
devDept.Eyeshot.Entities.Region reg1 = new devDept.Eyeshot.Entities.Region(cc2); CompositeCurve cc3 = new CompositeCurve( new Line(Plane.YZ, 25, 30, 25, 60), new Line(Plane.YZ, 25, 60, 40, 60), new Line(Plane.YZ, 40, 60, 40, 50), new Line(Plane.YZ, 40, 50, 70, 50), new Line(Plane.YZ, 70, 50, 70, 60), new Line(Plane.YZ, 70, 60, 85, 60), new Line(Plane.YZ, 85, 60, 85, 30), new Line(Plane.YZ, 85, 30, 25, 30) );
devDept.Eyeshot.Entities.Region reg2 = new devDept.Eyeshot.Entities.Region(cc3); Brep ext1 = new devDept.Eyeshot.Entities.Region(cc1).ExtrudeAsBrep(110); devDept.Eyeshot.Entities.Region reg3 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XY, new Point2D(45, 55), 15); ext1.ExtrudeRemove(reg3, 30); reg1.Translate(0, 10, 0); ext1.ExtrudeAdd(reg1, 15); reg1.Translate(0, 90, 0); ext1.ExtrudeAdd(reg1, -15); ext1.ExtrudeAdd(reg2, -20); model1.Entities.Add(ext1, Color.Tomato);
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.