Modeling Practice Drawings 37

2019-07-19_12-12-22.png

Plane pl1 = Plane.YZ; pl1.Translate(37.5, 0);
Mirror m1 = new Mirror(pl1);

Brep br1 = Brep.CreateBox(75, 45, 10);

Brep br2 = Brep.CreateBox(30, 45, 35);
br2.Translate(22.5, 0, 10); br1.Add(br2);

br1.ExtrudeRemove(devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XZ, new Point2D(37.5, 30), 7.5), -45);

devDept.Eyeshot.Entities.Region r1 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D[]{
    new Point2D(22.5, 45),
    new Point2D(27.5, 45),
    new Point2D(22.5, 40)});

devDept.Eyeshot.Entities.Region r2 = (devDept.Eyeshot.Entities.Region)r1.Clone(); r2.TransformBy(m1);

br1.ExtrudeRemove(r1, -45);
br1.ExtrudeRemove(r2, 45);

devDept.Eyeshot.Entities.Region r3 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XY, new Point2D(7, 38), 3.25);
br1.ExtrudeRemovePattern(r3, 10, 61, 2, -31, 2);

devDept.Eyeshot.Entities.Region r4 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XY, new Point2D[]{
    new Point2D(0, 45),
    new Point2D(2, 45),
    new Point2D(0, 43)});

devDept.Eyeshot.Entities.Region r5 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XY, new Point2D[]{
    new Point2D(0, 0),
    new Point2D(2, 0),
    new Point2D(0, 2)});

devDept.Eyeshot.Entities.Region r6 = (devDept.Eyeshot.Entities.Region)r4.Clone(); r6.TransformBy(m1);
devDept.Eyeshot.Entities.Region r7 = (devDept.Eyeshot.Entities.Region)r5.Clone(); r7.TransformBy(m1);

br1.ExtrudeRemove(r4, 10);
br1.ExtrudeRemove(r5, 10);
br1.ExtrudeRemove(r6, -10);
br1.ExtrudeRemove(r7, -10);

devDept.Eyeshot.Entities.Region r8 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.YZ, 0, 10, 7.5, 35);
devDept.Eyeshot.Entities.Region r9 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.YZ, 17.5, 10, 10, 35);
devDept.Eyeshot.Entities.Region r10 = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.YZ, 37.5, 10, 7.5, 35);

br1.ExtrudeRemove(r8, 75);
br1.ExtrudeRemove(r9, 75);
br1.ExtrudeRemove(r10, 75);

model1.Entities.Add(br1, Color.FloralWhite);
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.