LoicGoulefert / occult

vpype plug-in to remove occulted lines in SVG files
MIT License
68 stars 6 forks source link

Idea: Option to use geometry of overlapping shapes to make closed polygons on overlapped shapes #24

Open jayde-d opened 1 year ago

jayde-d commented 1 year ago

It may be useful for people using commands like fill from here (which may become a feature in vpype depending on whenever that happens) or efill from the embroidery plugin, to be able to make overlapping shapes be cropped properly, but have the resulting design use closed polygon loops, which these functions need to define their bounds. Not a massive necessity and i've not poked about your source code to see how feasible this would be, but I think it could be a great addition to this plugin. Threw a rough vis image together to show what this may look like. (please ignore that i was too lazy to reauthor the svg to make it have a filled shape, so the filled lines is just copy paste job :') ) idea_pic

LoicGoulefert commented 1 year ago

Hi @jayde-d ! I'm not sure this would be a good feature to have in occult. This plugin main goal is to remove geometries, not add them. Then again I'm not sure I fully understood your idea !