Faces orientation: "gmsh.model.mesh.getFace" versus "gmsh.model.mesh.getAllFaces"
Hi
Using the Python API, I'm testing gmsh.model.mesh.getFaces" and"gmsh.model.mesh.getAllFaces" to get elements faces (including internal ones).
When getting faces orientation, I'm facing to 2 issues:
- I've got an array with zeros when using "getFaces" (a single zero per face I guess)
- when using "getAllfaces", the retrieved array is 4 times greater than the number of faces one (I expected 3 as a classical vector or maybe the 4th value means something?)
Output: Face orientation vector: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] All Faces orientation vector: [13 8 7 6 13 14 17 8 13 6 15 14 7 8 17 16 6 7 16 15 14 18 21 17 15 16 20 19 13 12 11 10 26 27 29 28 24 25 19 18 22 23 25 24 22 23 15 14 18 19 20 21 16 17 21 20 14 15 16 17 14 15 19 18 17 26 28 21 9 10 27 26 12 13 6 5 18 29 31 24 12 5 23 22 12 22 14 13 5 6 15 23 10 13 14 27 23 15 19 25 22 24 18 14 21 28 29 18 8 13 10 9 8 9 26 17 17 26 27 14 27 14 18 29 10 11 30 27 11 12 22 30 14 27 30 22 27 30 31 29 30 22 24 31]
Number of face tags: 36 Number of face orientations: 144 Number of components: 4.0
Am I missing something?
In attachement the mesh and the python snippet. If necessary, I'm using the latest stable Gmsh release, and the Gmsh Api through Anaconda + Spyder
Thanks
Paul