Split Arc into Lines

Split Arc into Lines

Anonymous
Not applicable
1,660 Views
4 Replies
Message 1 of 5

Split Arc into Lines

Anonymous
Not applicable

Hi,

 

I've got a code that creates a convex hull from polyline vertices, but if polyline contains arc segment I've got the wrong results. Is there any way to convert arc into several lines using C# API?

 

Built in command that I would like to mimic is called 'flatten'.

0 Likes
Accepted solutions (1)
1,661 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Accepted solution

You may analyze the polyline segments and collect vertex points. When you get a CircularArc2d segments, you may use GetSamplePoints() to retrieve a number of points that you can add to the list and later use to create your hull.

 

Message 3 of 5

BKSpurgeon
Collaborator
Collaborator

HI any chance you code post the convex hull code - i'm sure future users will be thankful

 

rgds

BK

0 Likes
Message 4 of 5

SENL1362
Advisor
Advisor
"You'll need Gile" for a solution of these type of problems 🙂
http://www.theswamp.org/index.php?topic=31865.0
0 Likes
Message 5 of 5

BKSpurgeon
Collaborator
Collaborator

Yes it is brilliant. thanks to you and Gile. you are right. he is a grandmaster virtuoso. 

0 Likes