Preserving collinear closed polygon spikes #351
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 |
Beta Was this translation helpful? Give feedback.
-
Looking in
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions