From 8189cc72d0b2abff6460978b0e28d243268c76fb Mon Sep 17 00:00:00 2001 From: ifv Date: Fri, 17 Apr 2020 10:02:34 +0300 Subject: [PATCH] 0028229: BRep_Builder::Transfert must not raise exception if the input edge is Locked BRep/BRep_Builder.cxx : raising exception is removed --- src/BRep/BRep_Builder.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/BRep/BRep_Builder.cxx b/src/BRep/BRep_Builder.cxx index a93ef4a688..272f2fca88 100644 --- a/src/BRep/BRep_Builder.cxx +++ b/src/BRep/BRep_Builder.cxx @@ -1174,13 +1174,9 @@ void BRep_Builder::Transfert(const TopoDS_Edge& Ein, const TopoDS_Edge& Eout) const { 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(); - BRep_ListOfCurveRepresentation& lcr = TE->ChangeCurves(); + const BRep_ListOfCurveRepresentation& lcr = TE->Curves(); BRep_ListIteratorOfListOfCurveRepresentation itcr(lcr); while (itcr.More()) {