if (onsame) {
if (!CV1.IsOnArc() && !CV2.IsOnArc())
- Standard_Failure::Raise("Corner OnSame : no point on arc");
+ throw Standard_Failure("Corner OnSame : no point on arc");
else if (CV1.IsOnArc() && CV2.IsOnArc()) {
Standard_Boolean sur1 = 0, sur2 = 0;
for(ex.Init(CV1.Arc(),TopAbs_VERTEX); ex.More(); ex.Next()) {
}
}
- if (Fv.IsNull()) StdFail_NotDone::Raise
- ("OneCorner : face at end not found");
+ if (Fv.IsNull()) throw StdFail_NotDone("OneCorner : face at end not found");
Fv.Orientation(TopAbs_FORWARD);
Fad.Orientation(TopAbs_FORWARD);
}
}
}
- if (Arcprol.IsNull()) /*StdFail_NotDone::Raise
- ("OneCorner : edge a prolonger non trouve");*/
+ if (Arcprol.IsNull()) /*throw StdFail_NotDone("OneCorner : edge a prolonger non trouve");*/
{
PerformIntersectionAtEnd(Index);
return;
if (!ChFi3d_ComputeCurves(HGs,HBs,Pardeb,Parfin,Cc,
Ps,
Pc,tolesp,tol2d,tolreached))
- Standard_Failure::Raise("OneCorner : echec calcul intersection");
+ throw Standard_Failure("OneCorner : echec calcul intersection");
Udeb = Cc->FirstParameter();
Ufin = Cc->LastParameter();
}
}
else { // (!inters)
- Standard_NotImplemented::Raise("OneCorner : bouchon non ecrit");
+ throw Standard_NotImplemented("OneCorner : bouchon non ecrit");
}
Standard_Integer IShape = DStr.AddShape(Fv);
TopAbs_Orientation Et = TopAbs_FORWARD;
tol2d, Precision::PConfusion());
if (anIntersector.NbSegments() > 0 ||
anIntersector.NbPoints() > 0)
- StdFail_NotDone::Raise ("OneCorner : fillets have too big radiuses");
+ throw StdFail_NotDone("OneCorner : fillets have too big radiuses");
}
}
TopOpeBRepDS_ListIteratorOfListOfInterference
tol2d, Precision::PConfusion());
if (anIntersector.NbSegments() > 0 ||
anIntersector.NbPoints() > 0)
- StdFail_NotDone::Raise ("OneCorner : fillets have too big radiuses");
+ throw StdFail_NotDone("OneCorner : fillets have too big radiuses");
}
// 31/01/02 akm ^^^
DStr.ChangeShapeInterferences(IShape).Append(Interfc);
//Standard_Real tolreached;
if (!ChFi3d_ComputeCurves(HBop,HBs,Pardeb,Parfin,zob3d,zob2dop,
zob2dv,tolesp,tol2d,tolreached))
- Standard_Failure::Raise("OneCorner : echec calcul intersection");
+ throw Standard_Failure("OneCorner : echec calcul intersection");
Udeb = zob3d->FirstParameter();
Ufin = zob3d->LastParameter();
ChFi3d_cherche_face1(myEFMap(E),F1,Face[nb]);
cherche_edge1(Face[nb-1],Face[nb],Edge[nb]);
nb++;
- if (nb>=nn) Standard_Failure::Raise
- ("IntersectionAtEnd : the max number of faces reached");
+ if (nb>=nn) throw Standard_Failure("IntersectionAtEnd : the max number of faces reached");
}
if (!findonf2) Edge[nb]=CV2.Arc();
}
ChFi3d_cherche_face1(myEFMap(E),F2,Face[nb]);
cherche_edge1(Face[nb-1],Face[nb],Edge[nb]);
nb++;
- if (nb>=nn) Standard_Failure::Raise
- ("IntersectionAtEnd : the max number of faces reached");
+ if (nb>=nn) throw Standard_Failure("IntersectionAtEnd : the max number of faces reached");
}
Edge[nb]=CV2.Arc();
}
ChFiDS_FaceInterference& Fi = Fd->ChangeInterferenceOnS1();
if (!IntersUpdateOnSame (HGs,HBs,c3df,F1,Face[0],Edge[0],Vtx,isfirst,10*tolesp, // in
Fi,CV1,pfac1,Ufi)) // out
- Standard_Failure::Raise("IntersectionAtEnd: pb intersection Face - Fi");
+ throw Standard_Failure("IntersectionAtEnd: pb intersection Face - Fi");
Fi1 = Fi;
if (intersOnSameFailed) { // probable at fillet building
// look for paredge2
}
}
}
- else Standard_Failure::Raise("IntersectionAtEnd: pb intersection Face cb");
+ else throw Standard_Failure("IntersectionAtEnd: pb intersection Face cb");
}
else {
Hc2 = BRep_Tool::CurveOnSurface(E2,Face[nbface-1],Ubid,Ubid);
ChFiDS_FaceInterference& Fi = Fd->ChangeInterferenceOnS2();
if (!IntersUpdateOnSame (HGs,HBs,c3df,F2,F,Edge[nb],Vtx,isfirst,10*tolesp, // in
Fi,CV2,pfac2,Ufi)) // out
- Standard_Failure::Raise("IntersectionAtEnd: pb intersection Face - Fi");
+ throw Standard_Failure("IntersectionAtEnd: pb intersection Face - Fi");
Fi2 = Fi;
if (intersOnSameFailed) { // probable at fillet building
// look for paredge2
else if (containV(F1,V2) || containV(F2,V2))
ori=TopAbs_REVERSED;
else
- Standard_Failure::Raise("IntersectionAtEnd : pb orientation");
+ throw Standard_Failure("IntersectionAtEnd : pb orientation");
if (containV(F1,V1) && containV(F1,V2)) {
dist1=(BRep_Tool::Pnt(V1)).Distance(BRep_Tool::Pnt(Vtx));
#endif
{
if(!CV1.IsOnArc() && !CV2.IsOnArc())
- Standard_Failure::Raise("Corner intersmore : no point on arc");
+ throw Standard_Failure("Corner intersmore : no point on arc");
else if(CV1.IsOnArc() && CV2.IsOnArc()){
Standard_Boolean sur2 = 0;
for(ex.Init(CV1.Arc(),TopAbs_VERTEX); ex.More(); ex.Next()){
}
}
- if(Fv.IsNull()) StdFail_NotDone::Raise
- ("OneCorner : face at end is not found");
+ if(Fv.IsNull()) throw StdFail_NotDone("OneCorner : face at end is not found");
Fv.Orientation(TopAbs_FORWARD);
Fad.Orientation(TopAbs_FORWARD);
cherche_face(myVFMap(Vtx),Arcprol,Fad,Fv,Fv,Fopbis);
Fop.Orientation(TopAbs_FORWARD);
- if(Arcprol.IsNull()) StdFail_NotDone::Raise
- ("OneCorner : edge to be extended is not found");
+ if(Arcprol.IsNull()) throw StdFail_NotDone("OneCorner : edge to be extended is not found");
for(ex.Init(Fopbis,TopAbs_EDGE); ex.More(); ex.Next()){
if(Arcprol.IsSame(ex.Current())) {
OArcprolop = ex.Current().Orientation();
if (!ChFi3d_ComputeCurves(HGs,HBs,Pardeb,Parfin,Cc,
Ps,
Pc,tolesp,tol2d,tolreached))
- Standard_Failure::Raise("OneCorner : failed calculation intersection");
+ throw Standard_Failure("OneCorner : failed calculation intersection");
Udeb = Cc->FirstParameter();
Ufin = Cc->LastParameter();
}
else{
- Standard_NotImplemented::Raise("OneCorner : cap not written");
+ throw Standard_NotImplemented("OneCorner : cap not written");
}
Standard_Integer IShape = DStr.AddShape(Fv);
TopAbs_Orientation Et = TopAbs_FORWARD;
// Standard_Real tolreached;
if (!ChFi3d_ComputeCurves(HBop,HBs,Pardeb,Parfin,zob3d,zob2dop,
zob2dv,tolesp,tol2d,tolreached))
- Standard_Failure::Raise("OneCorner : echec calcul intersection");
+ throw Standard_Failure("OneCorner : echec calcul intersection");
Udeb = zob3d->FirstParameter();
Ufin = zob3d->LastParameter();