From 2a00cef737d5ac04fff3c8f73d72d4806c3aeab6 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 14 Jan 2009 11:49:21 +0000 Subject: [PATCH] Fix for issue 0020125: EDF VISU 930 : Bug with Clipping plane on Deformed Shape. --- src/VISU_I/VISU_Result_i.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 869c916d..a70b0027 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -1506,8 +1506,9 @@ VISU::Result_i bool axesComputed = false; for ( vtkIdType iCell = 0; iCell < aMesh->GetNumberOfCells(); ++iCell ) { vtkCell* cell = aMesh->GetCell( iCell ); - int nbPnt = cell->GetNumberOfPoints(); - if ( nbPnt != 8 ) + + if (cell->GetCellType() != VTK_HEXAHEDRON && + cell->GetCellType() != VTK_QUADRATIC_HEXAHEDRON ) continue; vtkPoints * points = cell->GetPoints(); vtkFloatingPointType coords[ 4 ][3]; -- 2.39.2