BRepFill_CompatibleWires CW(SSh);
CW.SetPercent(0.1);
CW.Perform();
- if (!CW.IsDone()) StdFail_NotDone::Raise("Uncompatible wires");
+ if (!CW.IsDone()) throw StdFail_NotDone("Uncompatible wires");
GeomFill_SequenceOfTrsf EmptyTrsfs;
Handle(BRepFill_NSections) SL = new (BRepFill_NSections) (CW.Shape(),EmptyTrsfs,SR,0.,1.);
Standard_Real US = p1/(p1+p2);
BRepFill_CompatibleWires CW(Seq);
CW.SetPercent(0.1);
CW.Perform();
- if (!CW.IsDone()) StdFail_NotDone::Raise("Uncompatible wires");
+ if (!CW.IsDone()) throw StdFail_NotDone("Uncompatible wires");
TheGuide = TopoDS::Wire(CW.Shape().Value(2));
}
else if (GuideClose) {
Standard_Boolean BRepFill_PipeShell::MakeSolid()
{
if (myShape.IsNull())
- StdFail_NotDone::Raise("PipeShell is not built");
+ throw StdFail_NotDone("PipeShell is not built");
Standard_Boolean B = myShape.Closed();
BRep_Builder BS;
void BRepFill_PipeShell::Generated(const TopoDS_Shape& theShape,
TopTools_ListOfShape& theList)
{
- // Standard_NotImplemented::Raise("Generated:Pas Fait");
+ // throw Standard_NotImplemented("Generated:Pas Fait");
theList.Clear();
//=======================================================================
void BRepFill_PipeShell::Prepare()
{
+ WSeq.Clear();
+ myEdgeNewEdges.Clear();
+
TopoDS_Wire theSect;
- if (!IsReady()) StdFail_NotDone::Raise("PipeShell");
+ if (!IsReady()) throw StdFail_NotDone("PipeShell");
if (!myLocation.IsNull() && !mySection.IsNull()) return; // It is ready
//Check set of section for right configuration of punctual sections
wdeg = wdeg && (BRep_Tool::Degenerated(anEdge));
}
if (wdeg)
- Standard_Failure::Raise("Wrong usage of punctual sections");
+ throw Standard_Failure("Wrong usage of punctual sections");
}
if (mySeq.Length() <= 2)
{
wdeg = wdeg && (BRep_Tool::Degenerated(anEdge));
}
if (wdeg)
- Standard_Failure::Raise("Wrong usage of punctual sections");
+ throw Standard_Failure("Wrong usage of punctual sections");
}
// Construction of the law of location
}
default :
{ // Not planned!
- Standard_ConstructionError::Raise("PipeShell");
+ throw Standard_ConstructionError("PipeShell");
}
}
}
}
}
else {
- Standard_ConstructionError::Raise("PipeShell : uncompatible wires");
+ throw Standard_ConstructionError("PipeShell : uncompatible wires");
}
mySection = new (BRepFill_NSections) (WorkingSections,Transformations,Param,V1,V2);