if ( nbPnt != 8 )
continue;
vtkPoints * points = cell->GetPoints();
- vtkFloatingPointType* coords[ 4 ];
- coords[0] = points->GetPoint( 0 );
- coords[1] = points->GetPoint( 1 );
- coords[2] = points->GetPoint( 3 );
- coords[3] = points->GetPoint( 4 );
+ vtkFloatingPointType coords[ 4 ][3];
+ points->GetPoint( 0, coords[0] );
+ points->GetPoint( 1, coords[1] );
+ points->GetPoint( 3, coords[2] );
+ points->GetPoint( 4, coords[4] );
gp_Pnt p0( coords[0][0], coords[0][1], coords[0][2] );
for ( iAx = 0; iAx < nbAxes; ++iAx )
{
// axis direction
if ( !axesComputed ) {
gp_Vec dir( p0, p );
- if ( dir.SquareMagnitude() <= DBL_MIN )
+ if ( dir.SquareMagnitude() <= gp::Resolution() )
break;
axDirs[ iAx ] = dir;
}