Hello! I have to create a profile section from lines with corners and fillets.
As a result i have a list of lines . How to join/connect this lines to get one curve from them, so i can make a surface from them?
The join command results an array so its still not a single curve.
Thanks.
var crv = new List<Curve>();
crv.Add(new LineCurve(new Point2d(0, 0), new Point2d(60, 0)));
crv.Add(new LineCurve(new Point2d(60, 0), new Point2d(60, 15)));
crv.Add(new LineCurve(new Point2d(60, 15), new Point2d(10, 15)));
crv.Add(new LineCurve(new Point2d(10, 55), new Point2d(0, 55)));
crv.Add(new LineCurve(new Point2d(0, 55), new Point2d(0, 0)));
crv.Add(new ArcCurve(Curve.CreateFillet(crv[0], crv[1], 6, 0, 0)));
crv.Add(crv[0].Trim(54, 60));
crv.Add(crv[1].Trim(1, 6));
var brep = Brep.AddTrimCurve(curves); ///----works onli with single object , not array,list!
doc.Objects.AddBrep(brep);