From 3a5f410762dca01b5c3e1058979dd0d60bfb983e Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 5 Dec 2007 11:44:44 +0000 Subject: [PATCH] Fix for Bug IPAL18088 4.x: wrong orientation of the "i","j" planes for the clipping of the structured mesh. --- src/VISU_I/VISU_Result_i.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ) { -- 2.39.2