I figure that CGAL splits the mesh every N vertices or so so that it doesnt
have loops with 2000 things to go through, and then it doesnt make
theoretically one-mesh CSG results? If so, i don't know why it would use so
much memory??!? I saved an STL and viewed it in Sketchup and found that it
was made of sub meshes.
Please say the construction of the STL files from cgal and is there a way to
join them into one set of mesh arrays? is it always one mesh array the STL
file?
--
View this message in context: http://forum.openscad.org/STL-saves-sub-meshes-or-one-mesh-tp13750.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Not sure what you mean by "sub mesh". An STL file is a flat list of
triangles. Whether they form one valid mesh or several or just a mess
depends on the numerical values of the vertices.
In general with OpenScad you get a closed mesh for each non overlapping
object. E.g if you make two cubes the STL file will have a single list of
triangles that form two separated meshes.
On 9 September 2015 at 04:38, ufomorace ant.stewart@yahoo.com wrote:
I figure that CGAL splits the mesh every N vertices or so so that it doesnt
have loops with 2000 things to go through, and then it doesnt make
theoretically one-mesh CSG results? If so, i don't know why it would use so
much memory??!? I saved an STL and viewed it in Sketchup and found that it
was made of sub meshes.
Please say the construction of the STL files from cgal and is there a way
to
join them into one set of mesh arrays? is it always one mesh array the STL
file?
--
View this message in context:
http://forum.openscad.org/STL-saves-sub-meshes-or-one-mesh-tp13750.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
I don't think CGAL has any optimization for making such operations faster.
CGAL likes to store everything in one huge object, and, due to the nature of
their data structures, they tend to use a lot of memory, as well as CPU
time.
Not sure if that helped - your questions was a bit hard to understand.
-Marius
--
View this message in context: http://forum.openscad.org/STL-saves-sub-meshes-or-one-mesh-tp13750p13754.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Thanks, I can confirm that it seems to be written to one STL array. I was
processing some opescads indifferent programs and some programs devide the
mesh into subgroups at 65534 vertices, for example i had a scad in sketchup
that was in one group devided into 5-7 sketchup components, so i was curious
if the original STL files were some kind of composite array mesh file. i.e.
x3d files i have been seeing recently have objects as multiple shapes in a
scene, and wavefront typs formats probably have just one mesh per file.
--
View this message in context: http://forum.openscad.org/STL-saves-sub-meshes-or-one-mesh-tp13750p13755.html
Sent from the OpenSCAD mailing list archive at Nabble.com.