rudi_favoriti
2009-04-10, 07:08 PM
Hi All,
I need to check if a 2D Polyline is composed by tangents elements.
It may be very useful an Autolisp function that:
1) Cycles trough the Polyline elements
2) Calculates the tangent of every element (when i found an arc, I need to find the tangent at Start Point and at the End Point)
3) Compares the End's tangent of current element with the Start's tangent of the next element
4) Check if the difference of two consecutive tangent is minus of an Epsilon
5) If not, it may be useful to draw a visible point, or circle where the tangent is missed, to help to fix the problem
For now, I'm unable to retrive the Start angle and the End angle of an Arc, useful to find the tangents.
Your helps are much appreciated.
Thanks in advance.
P.S. I'm trying to do it by myself but I'm a Lisp newby.
I need to check if a 2D Polyline is composed by tangents elements.
It may be very useful an Autolisp function that:
1) Cycles trough the Polyline elements
2) Calculates the tangent of every element (when i found an arc, I need to find the tangent at Start Point and at the End Point)
3) Compares the End's tangent of current element with the Start's tangent of the next element
4) Check if the difference of two consecutive tangent is minus of an Epsilon
5) If not, it may be useful to draw a visible point, or circle where the tangent is missed, to help to fix the problem
For now, I'm unable to retrive the Start angle and the End angle of an Arc, useful to find the tangents.
Your helps are much appreciated.
Thanks in advance.
P.S. I'm trying to do it by myself but I'm a Lisp newby.