Skip to content
Snippets Groups Projects
Commit fd398c69 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 30aaa219
No related branches found
No related tags found
No related merge requests found
...@@ -201,10 +201,15 @@ vtkUnstructuredGrid* Foam::vtkPV3Foam::volumeVTKMesh ...@@ -201,10 +201,15 @@ vtkUnstructuredGrid* Foam::vtkPV3Foam::volumeVTKMesh
} }
else if (cellModel == prism) else if (cellModel == prism)
{ {
for (int j = 0; j < 6; j++) // VTK has a different node order - their triangles point outwards!
{
nodeIds[j] = cellShape[j]; 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 vtkmesh->InsertNextCell
( (
VTK_WEDGE, VTK_WEDGE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment