From: rnv Date: Wed, 14 Jan 2009 11:49:21 +0000 (+0000) Subject: Fix for issue 0020125: EDF VISU 930 : Bug with Clipping plane on Deformed Shape. X-Git-Tag: before_mergefrom_BR_V5_IMP_P8_22Jan09~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a00cef737d5ac04fff3c8f73d72d4806c3aeab6;p=modules%2Fvisu.git Fix for issue 0020125: EDF VISU 930 : Bug with Clipping plane on Deformed Shape. --- 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];