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 ];
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 ) {