You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My laser cutter only supports boards up to 600x500mm, and sometimes boxes generates layouts larger than that, which I need to tweak by hand (which is fine when doing it once, but is a pain when trying to iterate on a design multiple times).
I would love to have a flag like --artboard=600x500, and then parts are automatically laid out inside that space (taking the artboard terminology from Illustrator, but page or pack or anything else is fine if there's a better term)
I have a non-functional proof-of-concept at master...shish:boxes:rectpack (the problem here is that calling move_to on a part that has already been laid out doesn't work like I had hoped)
Also FYI the rectpack library supports multiple boxes, so one can automatically split parts over several pieces of wood, though I'm not sure how this would be rendered if some output formats don't support the concept of multiple pages
The text was updated successfully, but these errors were encountered:
For now the pieces of all generators are layed out "by hand". Given the parametric nature of Boxes.py the layout works better or worse depending on the values given. For now there is no easy way to make this more dynamic in a way you'd want here. It probably is easier to do that as a second step working on the finished drawing. So the right thing would be adding this into the Surface class so it can be done which you still have "Part" objects around and before rendering the drawing into the final format.
The backend was done as a drop-in replacement for libcairo. But if we want to add features like this we might improve some infrastructure there first. E.g. storing the size of parts and may be put them on a separate canvas getting rid of the need to pass the sizes in advance to move().
Overall this is a pretty challenging project to get done right.
My laser cutter only supports boards up to 600x500mm, and sometimes
boxes
generates layouts larger than that, which I need to tweak by hand (which is fine when doing it once, but is a pain when trying to iterate on a design multiple times).I would love to have a flag like
--artboard=600x500
, and then parts are automatically laid out inside that space (taking theartboard
terminology from Illustrator, butpage
orpack
or anything else is fine if there's a better term)I have a non-functional proof-of-concept at master...shish:boxes:rectpack (the problem here is that calling
move_to
on a part that has already been laid out doesn't work like I had hoped)Also FYI the rectpack library supports multiple boxes, so one can automatically split parts over several pieces of wood, though I'm not sure how this would be rendered if some output formats don't support the concept of multiple pages
The text was updated successfully, but these errors were encountered: