Exercise 11

Exercise 11

HexagonalRegion hr1 = new HexagonalRegion(Plane.XY, 27.7128129);

hr1.Rotate(Utility.DegToRad(30), Vector3D.AxisZ, Point3D.Origin);

Solid3D ext1 = hr1.ExtrudeAsSolid3D(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)); Region r1 = new Region(lp1, Plane.XZ, false); ext1.ExtrudeAdd(r1, new Interval(-24, 24)); CircularRegion cr1 = new CircularRegion(Plane.XY, 8); ext1.ExtrudeRemove(cr1, 50); CircularRegion cr2 = new CircularRegion(new Plane(new Point3D(0, 0, 10), Vector3D.AxisX, Vector3D.AxisY), 20); ext1.ExtrudeRemove(cr2, 50); RectangularRegion rr2 = new RectangularRegion(Plane.XZ, -80, 10, 38, 30); ext1.ExtrudeRemove(rr2, new Interval(-12, 12)); viewportLayout1.Entities.Add(ext1, 0, Color.Gray);
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.