Deepnest
Deepnest copied to clipboard
SVGs overlapping
My shapes keep overlapping:
same issue with Deepnest 1.0.5
I was having similar issues and if you're on Windows I've taken the C# port and (tbc) fixed for my parts (among other things I needed) https://github.com/9swampy/DeepNestSharp.
One tip is make 100% sure your part is perfectly closed. Even the tiniest gap on either an outer or inner polygon leaving it open would break the code.
If you're not on Windows but your overlaps are consistent I'd still be interested in part file if you'd be happy to forward it.
One tip is make 100% sure your part is perfectly closed. Even the tiniest gap on either an outer or inner polygon leaving it open would break the code.
Ah thank you for this tip! Maybe there could be a check for this, highlighting the problem shape, and possibly even an option to fix/close gaps that are smaller then x amount?
No worries; it isn't the only reason for the overlapping to occur though. Just one you can check for and fix yourself without having to get knee deep in code.