Dear developers and users,
I need to have the ability of importing STL-files in OCCT. The files can be of large magnitude. The 'StlAPI' and 'read_stl_file' are both too slow. RWStl does the job, but gives back a poly_triangulation. I've tried to convert each poly_triangle into a face, but the creation of that many faces causes poor results.
Next thing I've tried is creating a face from all the triangles lying in the same plane. This works well on rectangle shaped objects, but very poor on 'curved' (stl is never really curved) objects.
I'm now trying to make a face from triangles that lie approximately in the same direction with the help of BRep_Builder. Result is now that the faces are created relatively easy, but when trying operations on the shape, the program crashes. Reason for this is because only the triangles are known, not the wire that defines the shape.
My question now, is there, in OCCT, a method to rapidly go from an stl-file to a TopoDS_Shape? The triangulation is not important to remember, what counts is the shape.
Thanks in advance,