From: rnv Date: Wed, 14 Jan 2009 11:47:26 +0000 (+0000) Subject: Fix for issue 0020125: EDF VISU 930 : Bug with Clipping plane on Deformed Shape. X-Git-Tag: V4_1_0_maintainance_20090206~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=90e373c166101ed923ba8e9232da15516f5a70c8;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 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];