TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: XXL66 on April 20, 2015, 04:07:05 AM

Title: intersecting vs touching
Post by: XXL66 on April 20, 2015, 04:07:05 AM
hello,

i need a routine to detect intersections, i came across Lee Mac his routines which works great but these also detect touching lines (at pseudo nodes) I would only need intersections on the segments within f.e. 1,5 cm tolerance. However i'm not that familiar with visual lisp functions. Where can i find more documentation regarding these functions ?

(vlax-invoke ob1 'intersectwith ob2 mod)  I guess there is probably not a simple variable or option that controls this ?

ty
Title: Re: intersecting vs touching
Post by: hmspe on April 20, 2015, 10:22:54 AM
Start here:  http://www.afralisp.net/archive/methods/lista/intersectwith_method.htm

I don't know of a way to automatically detect "X" intersections but not "T" intersections by settings.  I would probably find all intersections then test each pair of curves to see if there is an endpoint closer to the intersection than the tolerance.  When that condition exists the intersection should be removed from the list.