.NET

Reply
Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 1 of 5 (817 Views)
Accepted Solution

Polyline direction (clockwise or counterclockwise)

817 Views, 4 Replies
09-07-2013 11:52 PM

I am trying to set up the bulge for  a polyline, in order to set up the bulge currecty I need to know if the polyline was created clockwise or counterclockwise.

 

Any advice would be appreciated.

 

-J

*Expert Elite*
Alfred.NESWADBA
Posts: 8,880
Registered: ‎06-29-2007
Message 2 of 5 (813 Views)

Re: Polyline direction (clockwise or counterclockwise)

09-08-2013 12:03 AM in reply to: junoj

Hi,

 

I just did a search for "clockwise" in this forum here ... and the second item (in the current search result) answers your question (>>>click<<<).


- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 3 of 5 (746 Views)

Re: Polyline direction (clockwise or counterclockwise)

09-10-2013 10:09 PM in reply to: Alfred.NESWADBA

Alfred, thank you for the link.

 

I don’t think they ever solved the problem in the link, but it have a good idea. I end up using my own algorithm at the end of the day

*Expert Elite*
_gile
Posts: 2,075
Registered: ‎04-29-2006
Message 4 of 5 (734 Views)

Re: Polyline direction (clockwise or counterclockwise)

09-10-2013 11:25 PM in reply to: junoj

By my side, I think the algebraic area (signed area) DOES solve the problem.

Did you try the code I posted in the last repy of this thread?

http://forums.autodesk.com/t5/NET/How-to-know-the-orientation-of-a-polyline/m-p/3784606/highlight/tr...

Gilles Chanteau
Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 5 of 5 (714 Views)

Re: Polyline direction (clockwise or counterclockwise)

09-11-2013 07:55 AM in reply to: _gile

Thank you Gilles.

 

Yes, that is the code i used. :smileyhappy:

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community