Fri, 05/13/2016 - 17:52
Hi,
I want to load 2 STL files, perform a boolean action and save the result.
At the moment, when writing the resulting file with stlAPI::Write, I always got an 'empty' file.
Thus, I just try to load and save an input file and I do have the same empty file on output.
StlAPI::Read(shapes[i], fileNames[i]); seems to load the file (it took 6 seconds in debug, the mesh contains 1184 points, 2364 triangles & 2364 normals.
Using StlAPI::Write result in an empty file.
I'm using opencascade 7.0.0 for windows, visual studio 2013.
Can someone point me to what i'm doing wrong ?
Thanks
Mon, 05/16/2016 - 08:09
Hello Vincent,
It seems that our Mesh Framework component ( http://www.opencascade.com/content/mesh-framework ) can provide the functionality you are looking for.
We have sent the initial information about this component to your personal email.
Best regards,
Forum supervisor
Tue, 05/17/2016 - 12:01
Hi,
did you try:
http://www.opencascade.com/doc/occt-6.9.1/refman/html/class_r_w_stl.html
Thorsten
Tue, 05/17/2016 - 13:40
Hi,
did not try RWStl because I need to export a shape, resulting from a processing.
Thus my workflow is:
I'm currently experiencing using BRepMesh_IncrementalMesh to create a mesh and then exports it..
Tue, 05/17/2016 - 14:45
I am using BRepMesh_IncrementalMesh this way to get triangles:
To build a "StlMesh_Mesh" from I am using StlMesh_Mesh::AddDomain, StlMesh_Mesh::AddVertex and StlMesh_Mesh::AddTriangle.