Exporting 3D rendering as SVG/PDF with occlusion

I have been using the HE_Mesh library quite a bit to make models, and modify scanned models to make them have contour lines. It’s pretty neat.

I recently bought an AxiDraw to plot some of these out, but I am running into trouble when exporting a viewpoint as an SVG drawing to use in inkscape (which drives the axidraw)

Is there a library which will generate an SVG line drawing of a 3d view of a model with occlusion (so hidden lines disappear) I tried exporting as PDF but you get ALL the lines, and not just the visible ones.

My attempts until now have included bringing the model into Blender and then using freestyle to output but it is a problematic workflow that feels like a house of cards,ready to fail at any moment.

so… export as svg/pdf with occlusion from a 3d scene…?

1 Like

I don’t have personal experience in this, but it looks like HE_Mesh GUI had an occlusion shader – there might be some logic in that that could be useful?


Might also consider asking other Axidraw users…?


I ended up using Blender for this, as it can export with occlusion. In one case I used Python inside Blender to create all those cubes. In another one I used openFrameworks, but Processing would have been ok too, then load the mesh in Blender and export the svg.


I ended up using blender as well. It can be a bit daunting to set up Freestyle to export the correct things, and slicing can be time consuming, and is sometimes glitchy depending on the scale/amount of slicing done.

It is a good solution, though, and thankful pointing it out.