From: apo Date: Wed, 5 Dec 2007 11:44:44 +0000 (+0000) Subject: Fix for Bug IPAL18088 X-Git-Tag: mergefrom_MERGE_MULTIPR_EVOLUTION_07-Dec-07~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a5f410762dca01b5c3e1058979dd0d60bfb983e;p=modules%2Fvisu.git Fix for Bug IPAL18088 4.x: wrong orientation of the "i","j" planes for the clipping of the structured mesh. --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index b9bf3d80..775d3e48 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -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 ) {