.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Split Arc into Lines

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
tasaq313
1399 Views, 4 Replies

Split Arc into Lines

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'.

4 REPLIES 4
Message 2 of 5
mcicognani
in reply to: tasaq313

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
in reply to: tasaq313

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

 

rgds

BK

Message 4 of 5
SENL1362
in reply to: BKSpurgeon

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

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost