Author Topic: intersecting vs touching  (Read 1757 times)

0 Members and 1 Guest are viewing this topic.

XXL66

  • Newt
  • Posts: 99
intersecting vs touching
« 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

hmspe

  • Bull Frog
  • Posts: 362
Re: intersecting vs touching
« Reply #1 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.
"Science is the belief in the ignorance of experts." - Richard Feynman