Skip to content
Snippets Groups Projects
Commit 9352e17e authored by Mark Olesen's avatar Mark Olesen
Browse files

BUG: fix incorrect node order for VTK_WEDGE in paraview3 reader

This appears to be a long-standing bug!?, since it was also in the
paraview-2 reader.
parent f319ddfa
No related branches found
No related tags found
No related merge requests found
......@@ -201,10 +201,15 @@ vtkUnstructuredGrid* Foam::vtkPV3Foam::volumeVTKMesh
}
else if (cellModel == prism)
{
for (int j = 0; j < 6; j++)
{
nodeIds[j] = cellShape[j];
}
// VTK has a different node order - their triangles point outwards!
nodeIds[0] = cellShape[0];
nodeIds[1] = cellShape[2];
nodeIds[2] = cellShape[1];
nodeIds[3] = cellShape[3];
nodeIds[4] = cellShape[5];
nodeIds[5] = cellShape[4];
vtkmesh->InsertNextCell
(
VTK_WEDGE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment