Hi,
When I retrieve the polygon data from a mesh (the cube below as an example), I get something like this:
>>> vtk_to_numpy(mesh.GetPolys().GetData())
>>> [ 4 0 1 3 2 4 4 6 7 5 4 8 10 11 9 4 12 13 15 14 4 16 18 19 17 4 20 21 23 22]
The way I’m interpreting it is, each triangle is defined by its vertices indices, and looking at the output data and the cube, it looks like the first 3 values, 4 0 1
, make sense as in that they define a triangle, but the next 3 values, 3 2 4
, it appears to define a triangle that goes across the middle of the cube, which doesn’t seem right. Am I interpreting the data correctly of is there something else going on?
Thanks!