TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: well20152016 on July 28, 2019, 02:27:24 AM
-
How to determine the position of two LWPOLYLINE?
-
If both are closed draw a line from the centoid of each, and check the parameters or distances of the intersection points of the line with the two polylines
-
Assuming linear segments only, use the ideas shared in this thread (https://www.theswamp.org/index.php?topic=47969.0) to check whether each vertex of one polyline lies inside the other - you'll need to decide the appropriate output if the polylines are partially overlapping.
-
-
The ray cast approach has a known problem:
(RAYCAST '(0 0 0) '((1 0 0) (1 1 0) (-1 1 0) (-1 -1 0) (2 -1 0) (2 0 0))) => nil
-
Special examples, what's wrong?