Nope, Clipper1 didn't do this well, and the code was complicated and messy, so it's been removed. There are currently no functions or methods to do this, at least until I can figure out how to do this better than it was done in Clipper1.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'll play with it when I get the migration sorted and start running tests. I'm limited to C# but hopefully that could still be useful; this is also why I pointed at the github repository earlier. You'll see some customizations there already :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is what I was thinking of - I had the code in my DesignLibs_GPL project so pulled this out as an idea. From inspection of ClipperLib1, the SimplifyOption was really a Union (to tidy self-intersections) and then a colinear removal. I'd assume the colinear removal is the missing part to get this going in ClipperLib2, but admit to being uncertain. This code also assumes a closed shape because that's my use case
SimplifyOption was really a Union (to tidy self-intersections) and then a colinear removal.
Neither self-intersections or colinear spikes should be an issue in Clipper2.
It's the joining of touching polygons in solutions that was unsatisfactory in Clipper1 and left out of Clipper2.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just noticed this isn't available, that I can find. Is this unavailable; if so, what's the best way to reproduce what it did?
Nope, Clipper1 didn't do this well, and the code was complicated and messy, so it's been removed. There are currently no functions or methods to do this, at least until I can figure out how to do this better than it was done in Clipper1.
Naively, I thought this might be done by looking for angles ~180 degrees (where epsilon is the tolerance).
I'm very open to colaboration and incorporating useful code. 😁
I'll play with it when I get the migration sorted and start running tests. I'm limited to C# but hopefully that could still be useful; this is also why I pointed at the github repository earlier. You'll see some customizations there already :)
This is what I was thinking of - I had the code in my DesignLibs_GPL project so pulled this out as an idea. From inspection of ClipperLib1, the SimplifyOption was really a Union (to tidy self-intersections) and then a colinear removal. I'd assume the colinear removal is the missing part to get this going in ClipperLib2, but admit to being uncertain. This code also assumes a closed shape because that's my use case
Neither self-intersections or colinear spikes should be an issue in Clipper2.
It's the joining of touching polygons in solutions that was unsatisfactory in Clipper1 and left out of Clipper2.