Comb

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

Material mat = new Material(Properties.Resources.Maple);
model1.Materials.Add(mat);

devDept.Eyeshot.Entities.Region rrsr1 = devDept.Eyeshot.Entities.Region.CreateRoundedRectangle(200, 40, 4);
Brep ext1 = rrsr1.ExtrudeAsBrep(new Interval(-4, 4));
ext1.MaterialName = "wood";

Line l1 = new Line(10, 50, 15, 0);
Line l2 = new Line(20, 50, 15, 0);
Line l3 = new Line(20, 50, 10, 50);
Curve.Fillet(l1, l2, 1, true, false, true, true, out Arc a1);

CompositeCurve cc1 = new CompositeCurve(l1, l2, l3, a1);
devDept.Eyeshot.Entities.Region r1 = new devDept.Eyeshot.Entities.Region(cc1, Plane.XY, false);
ext1.ExtrudeRemovePattern(r1, new Interval(-5, 5), 10, 18, 0, 1);

Plane bottomPln = Plane.XY;
bottomPln.Rotate(+0.07, Vector3D.AxisX, Point3D.Origin);
bottomPln.Translate(0, 0, -3.5);
ext1.CutBy(bottomPln, true);

Plane topPln = Plane.XY;
topPln.Rotate(-0.07, Vector3D.AxisX, Point3D.Origin);
topPln.Translate(0, 0, +3.5);
ext1.CutBy(topPln, false);

model1.Entities.Add(ext1, model1.Layers[0].Name, Color.White);

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.