Accessing Facets etc info after Recombine
Still finding my way with Gmsh. I am using the python API. I can create and access a mesh. Having displayed the mesh I would like to offer the user the option to perform a Recombine and a Refine on the mesh. What are the minimum calls I need having already created a mesh? I tried gmsh.model.mesh.recombine and gmsh.model.mesh.refine but they fail accessing the Facets after the action
14:08:33 Action Recombine
14:08:33 Gmsh - GetNodes
14:08:33 Number coords : 270
14:08:33 Get Vertex Facets
14:08:33 Traceback (most recent call last):
14:08:33 File "/Users/keithsloan/Library/Preferences/FreeCAD/Mod/GDML/freecad/gdml/GDMLCommands.py", line 840, in actionRecombine
14:08:33 self.updateMeshView()
14:08:33 File "/Users/keithsloan/Library/Preferences/FreeCAD/Mod/GDML/freecad/gdml/GDMLCommands.py", line 805, in updateMeshView
14:08:33 facets = getFacets()
14:08:33 File "/Users/keithsloan/Library/Preferences/FreeCAD/Mod/GDML/freecad/gdml/GmshUtils.py", line 239, in getFacets
14:08:33 maxIdx = np.amax(faceNodes)
14:08:33 File "<__array_function__ internals>", line 5, in amax
14:08:33 File "/Applications/FreeCAD 0.19.1.app/Contents/Resources/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 2733, in amax
14:08:33 return _wrapreduction(a, np.maximum, 'max', axis, None, out,
14:08:33 File "/Applications/FreeCAD 0.19.1.app/Contents/Resources/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 87, in _wrapreduction
14:08:33 return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
14:08:33 ValueError: zero-size array to reduction operation maximum which has no identity