Standard_Real Extrema_ExtCC::SquareDistance(const Standard_Integer N) const
{
- if(!myDone) StdFail_NotDone::Raise();
- if ((N <= 0) || (N > mynbext)) Standard_OutOfRange::Raise();
+ if(!myDone) throw StdFail_NotDone();
+ if ((N <= 0) || (N > mynbext)) throw Standard_OutOfRange();
return mySqDist.Value(N);
}
Standard_Integer Extrema_ExtCC::NbExt() const
{
- if(!myDone) StdFail_NotDone::Raise();
+ if(!myDone) throw StdFail_NotDone();
return mynbext;
}
Extrema_POnCurv& P1,
Extrema_POnCurv& P2) const
{
- if(!myDone) StdFail_NotDone::Raise();
- if ((N <= 0) || (N > mynbext)) Standard_OutOfRange::Raise();
+ if(!myDone) throw StdFail_NotDone();
+ if ((N <= 0) || (N > mynbext)) throw Standard_OutOfRange();
P1 = mypoints.Value(2*N-1);
P2 = mypoints.Value(2*N);
}