How to get the tags of all the edges with the Python API ?
Hello,
I'm working with the Python API. I'm new to gmsh and I tested some tutorials offered in the GitLab repository of the gmsh library. Now, I have written a simple program which is similar to the x2.py code located in the gmsh/tutorial/python folder.
I’m trying to get the tags of all the edges. I have tested these 2 methods :
- nodes_, nodeCoords, _ = gmsh.model.mesh.getNodes() # to get the tags of the nodes
- edgesTags = gmsh.model.mesh.getEdges(nodes) # First method I have tested to get the tags of the edges
- edgesTags_, nodeTags = gmsh.model.mesh.getElementsByType(1) # Second method I have tested to get the tags of the edges
I don’t know how to get the tags of all the edges from any nodes. I have only the tags of the edges in the boundaries.
How can we get all the edges from any nodes with the Python API ?
In below you can see the program I have implemented : getTagsAllEdges.py
Thank you, any feedback would be most welcome.
Regards