RapCAD icon indicating copy to clipboard operation
RapCAD copied to clipboard

Depth-map SVG support

Open WillAdams opened this issue 4 years ago • 4 comments

Please add support for a depth-mapped SVG export where the geometry is analyzed and each element is filled (say white is the top of the object, 50% a cut halfway through it, black is a perimeter/profile cut through the stock)

WillAdams avatar Mar 05 '20 18:03 WillAdams

@WillAdams would this be the same as for example using the slice() module at different heights within the model, and then exporting each slice to SVG, then finally combining the resulting SVG slices into a single svg which each slice set to a different color?

GilesBathgate avatar Jan 19 '21 09:01 GilesBathgate

Yes, that is exactly what I am describing.

In retrospect not sure if it's worth the effort --- there aren't any CAM tools which would directly make use of this, so one would still have to manually assign the tool paths, but the effective color-coding might be helpful to folks.

WillAdams avatar Jan 19 '21 22:01 WillAdams

@WillAdams Well I was thinking its a basic test output from the CAM output feature. I'll have a think as to how It can be implemented.

GilesBathgate avatar Jan 20 '21 09:01 GilesBathgate

For an example of this sort of thing, but w/ colour-coding, see:

https://github.com/crozone/openscad-trotec-export

(which sort of colour-coding would probably be more useful)

WillAdams avatar Jul 14 '22 15:07 WillAdams