diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamMeshVolume.C b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamMeshVolume.C index ce4426fece1e2a2b43f1e191905b5e553a8de6af..8235b13d0a8faec2fe6ded068a38d32cb02e7506 100644 --- a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamMeshVolume.C +++ b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamMeshVolume.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -221,14 +221,14 @@ vtkUnstructuredGrid* Foam::vtkPV3Foam::volumeVTKMesh } else if (cellModel == tetWedge) { - // Treat as squeezed prism + // Treat as squeezed prism (VTK_WEDGE) nodeIds[0] = cellShape[0]; nodeIds[1] = cellShape[2]; nodeIds[2] = cellShape[1]; nodeIds[3] = cellShape[3]; nodeIds[4] = cellShape[4]; - nodeIds[5] = cellShape[4]; + nodeIds[5] = cellShape[3]; vtkmesh->InsertNextCell ( diff --git a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/vtkPV4Foam/vtkPV4FoamMeshVolume.C b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/vtkPV4Foam/vtkPV4FoamMeshVolume.C index 0592c60c1d8a045891ed27d81488c78a7aecc1ea..70a7c04a1a6d74c1bd4cc92a8447d090621a8b99 100644 --- a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/vtkPV4Foam/vtkPV4FoamMeshVolume.C +++ b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/vtkPV4Foam/vtkPV4FoamMeshVolume.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -221,14 +221,14 @@ vtkUnstructuredGrid* Foam::vtkPV4Foam::volumeVTKMesh } else if (cellModel == tetWedge) { - // Treat as squeezed prism + // Treat as squeezed prism (VTK_WEDGE) nodeIds[0] = cellShape[0]; nodeIds[1] = cellShape[2]; nodeIds[2] = cellShape[1]; nodeIds[3] = cellShape[3]; nodeIds[4] = cellShape[4]; - nodeIds[5] = cellShape[4]; + nodeIds[5] = cellShape[3]; vtkmesh->InsertNextCell (