]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL18088
authorapo <apo@opencascade.com>
Wed, 5 Dec 2007 11:44:44 +0000 (11:44 +0000)
committerapo <apo@opencascade.com>
Wed, 5 Dec 2007 11:44:44 +0000 (11:44 +0000)
   4.x: wrong orientation of the "i","j" planes for the clipping of the structured mesh.

src/VISU_I/VISU_Result_i.cc

index b9bf3d80d6ee4151437f9dd1e74f9b71ad90c3b4..775d3e48489ce8876ded6df120465c056891aae5 100644 (file)
@@ -1472,7 +1472,7 @@ VISU::Result_i
        points->GetPoint( 0, coords[0] );
        points->GetPoint( 1, coords[1] );
        points->GetPoint( 3, coords[2] );
-       points->GetPoint( 4, coords[4] );
+       points->GetPoint( 4, coords[3] );
        gp_Pnt p0( coords[0][0], coords[0][1], coords[0][2] );
        for ( iAx = 0; iAx < nbAxes; ++iAx ) {
          vtkFloatingPointType* coo = coords[ iAx + 1 ];
@@ -1513,7 +1513,8 @@ VISU::Result_i
       vtkPoints * points = aMesh->GetPoints();
       vtkIdType iP, nbP = aMesh->GetNumberOfPoints();
       for ( iP = 0; iP < nbP; ++iP ) {
-       vtkFloatingPointType* coo = points->GetPoint( iP );
+       vtkFloatingPointType coo[3];
+       points->GetPoint( iP, coo );
        gp_Pnt p( coo[0], coo[1], coo[2] );
        box.Add( p );
        for ( iAx = 0; iAx < nbAxes; ++iAx ) {