Exercise 11

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

devDept.Eyeshot.Entities.Region hr1 = devDept.Eyeshot.Entities.Region.CreateHexagon(Plane.XY, 27.7128129);
hr1.Rotate(Utility.DegToRad(30), Vector3D.AxisZ, Point3D.Origin);
Brep ext1 = hr1.ExtrudeAsBrep(50);

LinearPath lp1 = new LinearPath(Plane.XZ,
    new Point2D(-82, 0),
    new Point2D(0, 0),
    new Point2D(0, 30),
    new Point2D(-62, 30),
    new Point2D(-82, 0));

devDept.Eyeshot.Entities.Region r1 = new devDept.Eyeshot.Entities.Region(lp1, Plane.XZ, false);
ext1.ExtrudeAdd(r1, new Interval(-24, 24));

devDept.Eyeshot.Entities.Region cr1 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XY, 8);
ext1.ExtrudeRemove(cr1, 50);

devDept.Eyeshot.Entities.Region cr2 = devDept.Eyeshot.Entities.Region.CreateCircle(new Plane(new Point3D(0, 0, 10), Vector3D.AxisX, Vector3D.AxisY), 20);
ext1.ExtrudeRemove(cr2, 50);

devDept.Eyeshot.Entities.Region rr2 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XZ, -80, 10, 38, 30);
ext1.ExtrudeRemove(rr2, new Interval(-12, 12));
model1.Entities.Add(ext1, model1.Layers[0].Name, Color.Gray);

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.