Engine Cylinder

Capture.PNG

Solid3D rev1 = new RectangularRegion(200, 80).RevolveAsSolid3D(-Math.PI, Vector3D.AxisX, Point3D.Origin);
            
rev1.ExtrudeAddPattern(new RectangularRegion(15, 0, 8, 220, 0, true), -120, Utility.DegToRad(1), 16, 8, 10, 1);            

LinearPath lp1 = new LinearPath(Plane.YZ, new Point2D[]
{
     new Point2D(118, 0),
     new Point2D(200, 0),
     new Point2D(200, -200),
     new Point2D(-200, -200),
     new Point2D(-200, 0),
     new Point2D(-118, 0),
     new Point2D(-98, -110),
     new Point2D(+98, -110),
     new Point2D(+118, 0)
}); devDept.Eyeshot.Entities.Line[] lines = lp1.ConvertToLines(); const double filletRadius = 20; Arc arc1; Curve.Fillet(lines[5], lines[6], filletRadius, false, false, true, true, out arc1); Arc arc2; Curve.Fillet(lines[6], lines[7], filletRadius, false, false, true, true, out arc2); Region reg1 = new Region(new CompositeCurve(lines[0], lines[1], lines[2], lines[3], lines[4], lines[5], arc1, lines[6], arc2, lines[7])); rev1.ExtrudeRemove(reg1, +200); CircularRegion cr1 = new CircularRegion(Plane.YZ, 50); rev1.ExtrudeRemove(cr1, 200); rev1.ExtrudeRemovePattern(new CircularRegion(Plane.YZ, new Point3D(65, 0, 0), 5), 200, 0, new Point3D(0, 0, 0), -Math.PI / 2, 3); Solid3D[] union = Solid3D.Mirror(Plane.XY, rev1); viewportLayout1.Entities.AddRange(union, 0, System.Drawing.Color.CornflowerBlue);
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.