inline Standard_Boolean IntAna2d_AnaIntersection::IsEmpty () const {
if (!done) {
- StdFail_NotDone::Raise();
+ throw StdFail_NotDone();
}
return ((nbp==0)&&(!iden));
}
inline Standard_Boolean IntAna2d_AnaIntersection::IdenticalElements () const {
if (!done) {
- StdFail_NotDone::Raise();
+ throw StdFail_NotDone();
}
return iden ;
}
inline Standard_Boolean IntAna2d_AnaIntersection::ParallelElements () const {
if (!done) {
- StdFail_NotDone::Raise();
+ throw StdFail_NotDone();
}
return para ;
}
inline Standard_Integer IntAna2d_AnaIntersection::NbPoints () const {
if (!done) {
- StdFail_NotDone::Raise();
+ throw StdFail_NotDone();
}
return nbp ;
}
inline const IntAna2d_IntPoint& IntAna2d_AnaIntersection::Point (const Standard_Integer N) const {
if (!done) {
- StdFail_NotDone::Raise();
- return lpnt[0];
+ throw StdFail_NotDone();
}
else {
if ((N<=0)||(N>nbp)) {
- Standard_OutOfRange::Raise();
- return lpnt[0];
+ throw Standard_OutOfRange();
}
else {
return lpnt[N-1];