]> 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:49:21 +0000 (11:49 +0000)
committerrnv <rnv@opencascade.com>
Wed, 14 Jan 2009 11:49:21 +0000 (11:49 +0000)
src/VISU_I/VISU_Result_i.cc

index 869c916d6fb8d28924af0d8c0255a4c209e6c137..a70b0027925058113c055e005e00998538b9f188 100644 (file)
@@ -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];