Hot Door CORE Forum
HitDataVector getIntersections on single path - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5)
+--- Thread: HitDataVector getIntersections on single path (/showthread.php?tid=145)



HitDataVector getIntersections on single path - Rick Johnson - 08-06-2017

When one runs HitDataVector getIntersections with a single path that winds around and crosses itself one or more times, the number of HitData records returned is equal to the number of times the path intersects itself, but the contents of each record is the same, representing the first intersection only. I suspect this is not the intended behavior, as it would be much more useful if it returned each "crossing" in order, from beginning to end.


RE: HitDataVector getIntersections on single path - brendon - 12-02-2017

You're right. It should work the way you describe. I've added it to the list for a future version, but cannot promise when it will become available.


RE: HitDataVector getIntersections on single path - Rick Johnson - 01-06-2020

As of CORE 0.7.4, PathArt::getIntersections() correctly returns every location where a path crosses itself, but only the lowest-index segment is recognized. That is, the info for the intersection at the second pass is a duplicate of the first-pass intersection. Temporarily reversing the path would probably be a suitable workaround in most cases, though.


RE: HitDataVector getIntersections on single path - brendon - 01-14-2020

Thanks Rick, for the suggestion. We'll consider it for a future release.

Brendon