I'm working on a project where I'm building 3D models of circuit boards in OCC, exporting them as STEP/BREP files, and using Gmsh to mesh them. However, Gmsh seems to crash a lot when trying to mesh my files, and I'm wondering whether there are some known issues or some known tricks on how to build OCC topologies for use with Gmsh. I've noticed that a bunch of people in the forum are using this.
I'm doing only some small experiments now. Basically, if I just build a box (with BRepPrimAPI_MakeBox) and export it, Gmsh works fine. If I build 2 boxes (one on top of the other), and then build a compound (with BRep_Builder::MakeCompound) and add each box, then Gmsh crashes. Should I fuse the two boxes before exporting?
One more question: I've seen that OCC has some meshing capabilities. Is it just surface meshing, or does it perform also 3D volume meshing?