I have been working on something similar for plotter drawings http://xn--5ca.cc/jack-of-diamonds/#Faces
This project was actually meant to be for plotter drawings originally, and the SVGs it produces are plotter-friendly (all the occlusion is done mathematically, not using fills or masks).