Deepnest icon indicating copy to clipboard operation
Deepnest copied to clipboard

SVGs overlapping

Open l3kris opened this issue 4 years ago • 4 comments

My shapes keep overlapping:

Deepnest-overlapping Deepnest-overlapping2

l3kris avatar Jan 07 '21 09:01 l3kris

same issue with Deepnest 1.0.5

image image

herault-guillaume avatar Jan 16 '21 11:01 herault-guillaume

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.

9swampy avatar Sep 03 '21 02:09 9swampy

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?

marmilicious avatar Sep 03 '21 08:09 marmilicious

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.

9swampy avatar Sep 03 '21 08:09 9swampy