devDept.Eyeshot.Entities.Region front = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D[]{
new Point2D(-120,0),
new Point2D(-150,0),
new Point2D(-150,-60),
new Point2D(-134,-60),
new Point2D(-134,-25),
new Point2D(-120,-25),
});
front.Translate(0, 38);
Brep ext1 = front.ExtrudeAsBrep(76);
devDept.Eyeshot.Entities.Region rect = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XY, new Point2D[]{
new Point2D(0,20),
new Point2D(-120,20),
new Point2D(-120,-20),
new Point2D(0,-20)
});
ext1.ExtrudeAdd(rect, -20);
Circle c1 = new Circle(Plane.YZ, new Point2D(+20, -50), 6.5);
Circle c2 = new Circle(Plane.YZ, new Point2D(-20, -50), 6.5);
devDept.Eyeshot.Entities.Region r1 = new devDept.Eyeshot.Entities.Region(c1);
devDept.Eyeshot.Entities.Region r2 = new devDept.Eyeshot.Entities.Region(c2);
ext1.ExtrudeRemove(r1, -150);
ext1.ExtrudeRemove(r2, -150);
double angle = 2 * Math.PI / 3.0;
double x = -105 + (20 + Math.Abs(20 * Math.Cos(angle)));
double z = 20 + Math.Abs(20 * Math.Sin(angle));
Circle c3 = new Circle(Plane.XZ, new Point2D(-85, 20), 10);
CompositeCurve upCurve = new CompositeCurve(
new Line(0, 0, 0, -105, 0, 0),
new Line(-105, 0, 0, -105, 0, 20),
new Arc(Plane.XZ, new Point3D(-85, 0, 20), 20, Math.PI / 3.0, Math.PI),
new Line(x, 0, z, 0, 0, 0)
);
devDept.Eyeshot.Entities.Region upBlock = new devDept.Eyeshot.Entities.Region(upCurve, c3);
ext1.ExtrudeAdd(upBlock, new Interval(-8, 8));
int[] faces = { 2, 4, 8, 11, 12, 19, 10 };
foreach (int item in faces)
{
ext1.Faces[item].Color = Color.LightGray;
}
design1.Entities.Add(ext1, Color.Red);
Modeling Practice Drawings 135
Davide Angiolini
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.