agausmann / vrml2scad

Translate VRML / WRL files to an OpenSCAD script
BSD 2-Clause "Simplified" License
4 stars 0 forks source link

Merge shapes and their vertices based on shape color/appearance. #2

Open agausmann opened 1 year ago

agausmann commented 1 year ago

Idea is to reduce the number of vertices and polyhedron nodes in OpenSCAD.

The minimum distinction that has to be made is shapes of different colors, which have to be kept separate because they must be children of separate color nodes.

agausmann commented 1 year ago

I'm not sure how this will interact with DEF and USE. If we duplicate a shape everywhere it is USEd then that will increase the number of faces/vertices/nodes. (Assuming that OpenSCAD is internally caching and reusing the output of the modules generated for each DEF)