mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
0028229: BRep_Builder::Transfert must not raise exception if the input edge is Locked
BRep/BRep_Builder.cxx : raising exception is removed
This commit is contained in:
parent
c6f14a5213
commit
8189cc72d0
@ -1174,13 +1174,9 @@ void BRep_Builder::Transfert(const TopoDS_Edge& Ein,
|
|||||||
const TopoDS_Edge& Eout) const
|
const TopoDS_Edge& Eout) const
|
||||||
{
|
{
|
||||||
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &Ein.TShape());
|
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &Ein.TShape());
|
||||||
if(TE->Locked())
|
|
||||||
{
|
|
||||||
throw TopoDS_LockedShape("BRep_Builder::Transfert");
|
|
||||||
}
|
|
||||||
const Standard_Real tol = TE->Tolerance();
|
const Standard_Real tol = TE->Tolerance();
|
||||||
|
|
||||||
BRep_ListOfCurveRepresentation& lcr = TE->ChangeCurves();
|
const BRep_ListOfCurveRepresentation& lcr = TE->Curves();
|
||||||
BRep_ListIteratorOfListOfCurveRepresentation itcr(lcr);
|
BRep_ListIteratorOfListOfCurveRepresentation itcr(lcr);
|
||||||
|
|
||||||
while (itcr.More()) {
|
while (itcr.More()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user