You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure what's going wrong, and if I use .intersection(poly2, poly1) instead of .intersection(poly1, poly2), it gives me two points of poly2 that should not be there either.
To get the proper result I used PolyBool js, which is 2.5x slower...
Cheers.
Jo.
The text was updated successfully, but these errors were encountered:
Unfortunately, Greiner-Hormann algorithm cannot handle degenerate cases, e.g. when intersections are falling on the edges of the polygon, or vertices coincide.
I changed a point in your polygon slightly to get the correct shape, that's the technique that is suggested to treat cases like that with this algorithm.
Hello,
I have a case where I intersect 2 convex polygons and the result of the intersection is not correct. Here is a piece of code:
I am not sure what's going wrong, and if I use
.intersection(poly2, poly1)
instead of.intersection(poly1, poly2)
, it gives me two points of poly2 that should not be there either.To get the proper result I used PolyBool js, which is 2.5x slower...
Cheers.
Jo.
The text was updated successfully, but these errors were encountered: