-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximum call stack size exceeded on intersection #124
Comments
The problem seems to happen when the RingOut object is built, I found a case where one of the segments has itself as the previous segment polygon-clipping/src/sweep-line.js Line 131 in 203699f
|
@Athorcis I get the same issue, and it seems to propagate from earlier in the code. At this line: polygon-clipping/src/sweep-line.js Line 53 in 203699f
I get these evaluations:
So it looks like there are two nodes in the splay tree with the same key. I don't know enough about the algorithm to know if this should be avoided or not, but I will read the paper. If this is the triggering condition, it seems easy to just use |
Tentative fix for mfogel#124: Maximum call stack size exceeded on intersection
Tentative fix for mfogel#124: Maximum call stack size exceeded on intersection
Hi, trying to intersect two polygons, but get the aforementioned error.
I've included the files that I was working with
geojson.zip
Am I using it in the wrong way? I didn't see the same issue yet hence I made a new ticket for it
The text was updated successfully, but these errors were encountered: