tamasmeszaros / libnest2d

2D irregular bin packaging and nesting library written in modern C++
GNU Lesser General Public License v3.0
315 stars 104 forks source link

The polygons are not arranged #35

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello! Thanks for your library. I generate a series of poygons at random, and the polygons can be drawn on a widget with Qt. I can also output the vertexes with the function Item::toString. However, the number of bins that used is always zero, The result polygons' postion also haven't been changed. What the mistake I make. Here is the output info1 Here is the polygons I generate info2 Here is the screenshoot of code info3

tamasmeszaros commented 3 years ago

Check the input, make sure that: all polygons are oriented clockwise and the first vertex is identical to the last vertex.