Preserving collinear closed polygon spikes #351
giedrius-stanevicius
started this conversation in
General
Replies: 3 comments 4 replies
|
Hi Giedrius. Yes this is an arbitrary design choice. It's my presumption that removing spikes would almost always be the preferred option. And while it wouldn't be very hard to allow these spikes** with an additional boolean property in Clipper64, these additional options just increases the complexity of the library (and the documentation). **It would just be a minor tweak to |
2 replies
|
Looking in |
1 reply
Yes, I believe you were just lucky in this instance. I've now had a fairly good look at this and there's not easy way to reliably allow spikes without significantly reworking the clipping code. Sorry to disappoint. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would like to be able to preserve collinear spikes present on original polygons when they are simplified or clipped with other polygons. However, documentation explicitly states that such spikes would be removed and that's how it actually works (at least with Clipper1). I wonder if such behavior is inherent to the clipping algorithm or is it just an arbitrary design choice? If it is the later, then how complicated it could be to adjust the library for this? Would it be worth investigating?

All reactions