Closed Brandon10x15 closed 10 months ago
We're running into a similar issue with the intersect
function. Try transforming the polygons before and after you call unify. Scale the polygons up and then rotate them. call unify
then unscale and unrotate them.
Encountering this as well – would've loved to use the library if not for infinite loops!
Hi, @Brandon10x15 ,
I tried you data and this is what I got:
I assume this is not what you planned. Maybe you can give me your "bunch of overlapping circles", I will test on it. In general library supposed to support boolean operations on circles as well.
@DeveloperUX , @max-vogler , Please give me your examples of data, I want to test them too
So basically I have a bunch of overlapping circles, which Im transforming to Polygons, checking for any intersecting polygons, and adding all of the polygon coordinates to an array, and then it should unify all of the polygons into one. Here's what I have so far
Here is the area that is being tested to merge.
The code
the result coordinates printed to console
The error (line 336 is the line that calls unify())
I have reviewed all of the old issues for this infinite loop but have not been able to find a workaround