Issues when incrementally meshing OpenCascade shapes
Hi
We are trying to mesh a complicated structure incrementally. It is not feasible for us to mesh everything at once since we use the intermediate mesh results to calculate a new mesh size field for the next part. I've constructed a simplified example that showcases our problem.
The code is included in the attached cpp file, GmshBug001.cpp. The console output is included in the attached log file, GmshBug001.log.
The wireframe for the geometry is shown in the following image.
The center cube is not part of the computational domain. Only the left cube, right cube and the surrounding volume inside the bounding box. Generated by the program is the brep file, which I've also attached for convenience, gmsh_bug_001.brep.
There are two issues in this example.
-
The already meshed surfaces (1, 2, 3, 4) are re-meshed even though their geometry hasn't changed. The curves do not seem to have this issue and are correctly skipped when meshing subsequent parts.
-
The crash when trying to mesh the right cube. If the mesh is generated all at once, then no crash occurs.
Any guidance and/or assistance will be greatly appreciated.