I'm trying to triangulate a shape. This shape I want to read out of a STEP file by BRepTools::Read(TopoDS_Shape & Sh, const Standard_CString File, const BRep_Builder & B) respectively by the same mathod provided by jCAE the Java interface for OCC (thanks to Patrik Mueller for this hint).
My first problem is, that I'm getting an IO or file format error when reading the file. Do I have to transform the STEP files in order to instantiate the shape? Patrik stated in this thread (http://www.opencascade.org/org/forum/thread_11550/) that there has to be done some transformation...
My second problem is, that I'm a bit confused about what Methods and classes to use to implement my task.
Is this the right procedure?
1. read out the STEP file & applying it to a new shape
2. iterate over the faces of the shape by TopExp_Explorer
3. triangulate every face during the iteration by BRep_Tool.triangulation
What is the business of TopLoc_Location in step 3? Do I have to make use of BRepMesh? What's the function of BRepMesh?
I know that's a bunch of questions but I hope there is someone of you who has pity with me :)
Thanks for help!