Modeling Practice Drawings 78

Drawing78.png

devDept.Eyeshot.Entities.Region reg1 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XZ, 0, 0, 125, 73);
Brep ext1 = reg1.ExtrudeAsBrep(-74);

devDept.Eyeshot.Entities.Region reg2 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XZ, -5, -5, 150, 100);
reg2.Rotate(Utility.DegToRad(-25),Vector3D.AxisX);
ext1.ExtrudeRemove(reg2, 50);

reg2 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XZ, 28, -4, 44);
reg2.Translate(0, -1, 0);
ext1.ExtrudeRemove(reg2, -80);

reg2 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XY, -53, 0, 100, 90);
double cutheight = 73 - (Math.Tan(Utility.DegToRad(24)) * 52);
reg2.Translate(0, 0, cutheight);
reg2.Rotate(Utility.DegToRad(18), Vector3D.AxisY, new Point3D(47, 0, cutheight));
ext1.RevolveRemove(reg2, Utility.DegToRad(138), Vector3D.AxisY, new Point3D(47, 0, cutheight));

reg2 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XZ, 62, 25, 30, 50);
reg2.Translate(0, 39, 0);
reg2.Rotate(-Utility.DegToRad(24), Vector3D.AxisY, new Point3D(99, 0, 73));
ext1.ExtrudeRemove(reg2, -24);

model1.Entities.Add(ext1, Color.Orange);

2022-03-23_12-19-35.png

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.