From 655fb3841a6900d8c0b9e18b3a8b8f3e057bde68 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 24 Aug 2016 09:45:23 +0100 Subject: [PATCH] foamToVTK::vtkTopo: Apply fix from #1633 Patch contributed by Bruno Santos Resolves bug-report http://bugs.openfoam.org/view.php?id=2213 --- .../dataConversion/foamToVTK/foamToVTK/vtkTopo.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK/vtkTopo.C b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK/vtkTopo.C index f537b10b44..a5cf955cb4 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK/vtkTopo.C +++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK/vtkTopo.C @@ -154,14 +154,14 @@ Foam::vtkTopo::vtkTopo(const polyMesh& mesh) } else if (cellModel == tetWedge) { - // Treat as squeezed prism + // Treat as squeezed prism (VTK_WEDGE) vtkVerts.setSize(6); vtkVerts[0] = cellShape[0]; vtkVerts[1] = cellShape[2]; vtkVerts[2] = cellShape[1]; vtkVerts[3] = cellShape[3]; vtkVerts[4] = cellShape[4]; - vtkVerts[5] = cellShape[4]; + vtkVerts[5] = cellShape[3]; cellTypes_[celli] = VTK_WEDGE; }