I want to draw in 2D using Processing, export the image as an SVG, and then plot with an Axidraw.
The issue I keep running into is that SVGs retain all lines, and therefore any lines that are covered by another shape’s fill are still drawn. Here is a simple example:
In this image, the circle covers the corner of the square because of the solid white fill. But when I open the file in Inkscape, the hidden corner is no longer hidden. Here are the 2 main routes I have heard might work based on my online research:
- Create/find a geometry library that only draw the parts of shapes that are shown. I have not been able to find a Processing library with this functionality. I thought about creating my own, but would like to avoid that work if possible.
- Use Blender with Freestyle SVG Export to remove the hidden lines and then open in Inkscape. I get stuck every time when I try to do this. I have basically no Blender experience but have watched several tutorials about exporting with Freestyle SVG and every time I end up with poor results. Does anyone have suggestions on good tutorials that specifically deal with 2D scenes/shapes in Blender? My approach so far has been to draw each shape in Processing with slightly different z-values so that it is easy to export using freestyle SVG but again, I have had no luck.
Here is the scene that I currently have in Blender:
And here is the scene in Inkscape with the SVG exported from Blender. For some reason, only part of the paths are drawn (the blue lines shown which part will be drawn):
Any help would be greatly appreciated! I have been so limited in my plotting capabilities because of this issue!