Reversed triangles in vtkPolyData created from points and cells

Hello,

If the indexes of your cartoon match that of the points in code, then all your faces are counter-clockwise when seen from the inside of the pyramid, which would result in consistent normals (either all pointing to inside or all to the outside). I’d do a double-check on the part of the code where you set the vertexes. They may be in an order different from the cartoon’s.

best,

PC