3d to 2d
Anyone have any suggestions on how i can go from an extruded shape back to 2d, like how i can make an extruded cylinder back to a circle? I'm asking since I'm trying to generate .svg files.
@z3dev oh ok good to know! Thank you!
@gilboonet Thank you ! I will give this a try!
gilboonet last edited by
I made a function (vol2surf) that returns a shape from a volume and an axis, but it's gross and wasn't fully tested. You'll maybe get a shape that needs winding reversal. code : https://github.com/gilboonet/gilboonet.github.io/blob/master/demos/gigi.js run : https://jscad.xyz/#https://raw.githubusercontent.com/gilboonet/gilboonet.github.io/master/demos/gigi.js
z3dev last edited by
@Maria-Alzate sadly, no.
there's a concept call 'projection', which projects the outlines of a 3D shape to a plane, which becomes basically 2D. this functionality has been requested several times over the years, but there has never been a implementation provided.
i think others are basically taking a very thin slice, converting the points into 2D, and creating a 2D shape from the points.
however, this doesn't work if there are holes in the 3D shape.