Closed MikhailFarbshteyn closed 6 months ago
UPDATE: the is_inside_polygon()
function is incorrect!
There is a bug in the intersection function for parallel or collinear lines. If I "jiggle" the points a little, the result is correct:
def jiggle(points: list[Vec2]) -> list[Vec2]:
return [Vec2(random.random(), random.random()) + p for p in points]
Describe the bug Have a nice day! I found a bug with using clipping. In some case when I made union operetion with 2 regions it make them difference. Could you check this case?
To Reproduce please try this code
regions.json FILE