
devDept.Eyeshot.Entities.Region hr1 = devDept.Eyeshot.Entities.Region.CreateHexagon(0, 0, 32);
hr1.Rotate(Math.PI / 6, Vector3D.AxisZ);
Brep ext1 = hr1.ExtrudeAsBrep(50);
design1.Entities.Add(ext1, Color.Gray);
devDept.Eyeshot.Entities.Region r1 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D(-82, 0),
new Point2D(0, 0),
new Point2D(0, 30),
new Point2D(-62, 30));
ext1.ExtrudeAdd(r1, new Interval(-24, 24));
devDept.Eyeshot.Entities.Region cr1 = devDept.Eyeshot.Entities.Region.CreateCircle(0, 0, 8);
ext1.ExtrudeRemove(cr1, 50);
devDept.Eyeshot.Entities.Region cr2 = devDept.Eyeshot.Entities.Region.CreateCircle(0, 0, 10, 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));
design1.Entities.Regen();

Comments
Please sign in to leave a comment.