From 90e373c166101ed923ba8e9232da15516f5a70c8 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 14 Jan 2009 11:47:26 +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 5ccd116d..cad338f0 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -1488,8 +1488,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