Open markfink opened 4 years ago
I also found that Box() takes a center parameter if you want to push the entire bin in positve space. Otherwise the bin gets centered at (0,0), and gets clipped in negative space.
size_t s = 150000000; size_t bins = nest(input, Box(s,s, {s/2, s/2} ));
Hello @markfink. I believe @samsonsite1 is right. The green color for the output polygons are made by hand in Inkscape, the SWGWriter is too dummy for that.
BTW, thank you for nest2d, it's awesome to see libnest2d being used in this way.
@tamasmeszaros it was a pleasure! Thanks really belongs to the pybind11 developers. The bindings are brand new (shame, I did not even write a blog post about it) and it is not clear where to go with it. Would you be interested to move the binding code to your repo?
I just found libnest2d and it looks awesome. thank you for sharing your code!
I am running the simple example code and it does nothing. I guess it is related to this part of the code.
Could you please share the version of the example that renders the beautifull 38 green objects. I assume this was generated using your lib.
I managed to doctor in some code from your other example (very ugly compared to your output).