Intersection gives incorrect result for polygon and line
- Dominant language
- C++
- Stars
- 517
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
I have a polygon and line which intersects at the very corner, the intersection result is much larger than it should be. The godbolt repro is here: https://godbolt.org/z/TEEaqvcT1
Polygon(red) and line(green)

Intersection result(blue) goes way outside of the red triangle, down to the bottom left

I don't really care whether the actual result is super accurate or not, I don't need a high level of precision, I just need the result to be somewhat sensible and not creating huge lines outside the boundaries of the polygons I'm using to intersect.
Contributor guide
Assessment
This issue has not been assessed yet.