CavalierContours
CavalierContours copied to clipboard
Make ParallelOffsetIslands more general
Hello JBuck and thanks for your excellent work!
I'm working on your ParallelOffsetIslands algorithm trying to make it more general in two ways:
- Handle negative offsets. Here I think I have a result by reversing all polylines before input to your code and swapping cwLoops with ccwLoops. Is it correct?
- Handle different offsets for internal contours and external. Here I'm lost... Can you suggest some heuristics?
Thanks. L
- I think that should work...
- I do not think there is an easy way to do this right now without modifying the code (code would need to change to pair an offset value with each loop and apply different offsets and distance checks according to that value). I wont be working on this any time soon and if/when I work on it it would be in the Rust library here. If you make changes and get it working I'll accept pull requests.