csg.js icon indicating copy to clipboard operation
csg.js copied to clipboard

Save as PLY?

Open r03ert0 opened this issue 6 years ago • 2 comments

Hello! How should one go for saving a resulting polygon as PLY, STL or something else? Can that be done from inside csg.js? Or is there another recommended library? thank you!

r03ert0 avatar Sep 10 '19 12:09 r03ert0

Csg.js dont have a method for this(it focus on csg operations), but writing one is simples, just access the polygons array in your CSG object, every polygon is made of CSG.Vertex containing a position and a normal of type CSG.Vector.

correaelias avatar Aug 05 '21 11:08 correaelias

Csg.js dont have a method for this(it focus on csg operations), but writing one is simples, just access the polygons array in your CSG object, every polygon is made of CSG.Vertex containing a position and a normal of type CSG.Vector.

Sintay1994 avatar Aug 07 '21 09:08 Sintay1994