]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for issue 0020125: EDF VISU 930 : Bug with Clipping plane on Deformed Shape.
authorrnv <rnv@opencascade.com>
Wed, 14 Jan 2009 11:47:26 +0000 (11:47 +0000)
committerrnv <rnv@opencascade.com>
Wed, 14 Jan 2009 11:47:26 +0000 (11:47 +0000)
src/VISU_I/VISU_Result_i.cc

index 5ccd116de7dfbf32634e9bce61f845515314396b..cad338f0801d67170808a56454817e9c6b8c73ce 100644 (file)
@@ -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];