Create Volume entity after importing Brep file
The OCC.ImportShapes function does not create a volume entity on its own. For example, after calling functions
v = gmsh.model.occ.importShapes(filename) gmsh.model.occ.synchronize() vol_tag = gmsh.model.getEntities(3)
I receive NULL output for vol_tag. Even with it, I could mesh the geometry.
Hence, I thought to create a volume by extracting surfaces and executed the following code
v = gmsh.model.occ.importShapes(filename) gmsh.model.occ.synchronize() s = gmsh.model.getEntities(2) l = gmsh.model.occ.addSurfaceLoop([s[i] for i in range(len(s))]) vol_tag = gmsh.model.occ.addVolume([l])
The code creates a volume entity but throwing the error "No tetrahedra in region 1/ No elements in volume 1" while meshing the volume.
What am I missing here? Thanks for your help.