Modify / scale / expand CurveArray

Modify / scale / expand CurveArray

Anonymous
Not applicable
399 Views
1 Reply
Message 1 of 2

Modify / scale / expand CurveArray

Anonymous
Not applicable

I have a CurveArray consisting of at least three lines that surround an area. The lines need to be "connected". It looks like this (the shape can vary, depending on the number of lines):

20150624-105750.png

I want to "expand" the CurveArray, so that the area, that is surrounded, is increased.

enlarge.png

Is there an easy way to do this with a CurvedArray?

 

My CurvedArrays look like this:

 

CurveArray profile = new CurveArray();
profile.Append(Line.CreateBound(new XYZ(0, 0, 0), new XYZ(10, 0, 0)));
profile.Append(Line.CreateBound(new XYZ(10, 0, 0), new XYZ(10, 10, 0)));
profile.Append(Line.CreateBound(new XYZ(10, 10, 0), new XYZ(0, 10, 0)));
profile.Append(Line.CreateBound(new XYZ(0, 10, 0), new XYZ(0, 0, 0)));

 

Thanks!

0 Likes
400 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Use the CurveLoop class.

 

If you take a look at the methods it provides, the rest is self-evident.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes