Material mat = new Material("wood", Properties.Resources.Maple.ToByteArray()) {TextureLength = 40};
design1.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);
Arc a1;
Curve.Fillet(l1, l2, 1, true, false, true, true, out 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);
design1.Entities.Add(ext1, design1.Layers[0].Name, Color.White);
Comb

Giulia Martini
This content is available only to customers with an active subscription. Please ensure your subscription is current to access this article.
Please sign in to access this article.
If you believe this is an error, please contact our support team for assistance.
Comments
Please sign in to leave a comment.