In openSCAD there is a command to project a 3D model to a 2D surface.
I can't find anything about this command in the JSCAD Documentation.
Is there a way to do the same in openJSCAD.
In openSCAD there is a command to project a 3D model to a 2D surface.
I can't find anything about this command in the JSCAD Documentation.
Is there a way to do the same in openJSCAD.
Yes, it can be done, let me demonstrate with a simple cube:
function main () {
var z0basis = CSG.OrthoNormalBasis.Z0Plane();
return (cube({size: 10, center: true})).projectToOrthoNormalBasis(z0basis);
}