addam / Export-Paper-Model-from-Blender

Python addon for creating paper models in Blender (development version)
https://blenderartists.org/t/export-paper-model/476597
406 stars 54 forks source link

tabs are cut by my cutting plotter #18

Closed alpharesearch closed 9 years ago

alpharesearch commented 13 years ago

Hello, I'm using a Silhouette SD cutting plotter with Robocut https://launchpad.net/robocut and Ubuntu 10.10... I can export the SVG from Blender via your script (thank you!), everything works very good. The cutting plotter software cuts the path just fine, however the tabs are not connected with dashed lines so it cuts the lines off as well. It would be nice if the script could generate different layers in the SVG file. Like a print layer with all the lines also on the tabs and a cut layer with dashed lines on the tabs. The cut layer could be disabled by default. Regards, Markus

addam commented 13 years ago

It would make sense if the tabs were connected by dashed line - always. The thick line marks a cut, so it should lead around the tab from the outside. Another reason is that it would be nice to tell if the tab is folded in a convex or a concave angle - elsewhere it is differentiated by dashed and dash-dotted stroke.

alpharesearch commented 13 years ago

I think I fixed this issue. https://github.com/alpharesearch/Export-Paper-Model-from-Blender/commit/006ae21a19a3c408ffc674bad3fba3f34bca2174 This commit adds a new flag to the UVFace to mark if it has a sticker. This is set at the time the sticker is added. In SVG there are two new layers, one for the solid lines and one for the dashed lines... the only thing that is missing is the convex and concave angle stuff... I guess two flags and another layer would work... is the angel available at the sicker creation point?

addam commented 9 years ago

Now the script exports tabs with dashed/dash-dotted lines depending on the angle, so this should not be a problem anymore.