markfink / nest2D

Nest2D is a 2D bin packaging tool for python.
GNU Lesser General Public License v3.0
109 stars 39 forks source link

Overlapping parts on the output result. #18

Open misan opened 1 year ago

misan commented 1 year ago

Hi,

I am testing nest2D (ubuntu 20.04, Python 3.10.6). The sample example works as expected, but I have tested with other, more complex shapes, and I am getting parts overlapping on the output. Do you know how to fix that?

I am including the result I got. out

misan commented 1 year ago

Trying the same parts (file below) with SVGnest it does work ok. sample

Here you have SVGnest output ...

SVGnest-output

PhilippBau commented 8 months ago

Hi, I came across the same problem. Be aware of the limitations of the https://github.com/tamasmeszaros/libnest2d lib that is being used:

"At this stage it works well for rectangles and convex closed polygons without considering holes and concavities."

This could possibly help you https://github.com/tamasmeszaros/libnest2d/issues/49

misan commented 8 months ago

Thanks a lot, @PhilippBau; I will try the solution you linked. However, some of my parts have concave sections and that could well be the cause of it.

Cheers!

PhilippBau commented 8 months ago

@misan If this doesn't work with concave polygons I can recommend this repo:

https://github.com/DanielLiamAnderson/Packaide