From 663101a60413f94deb4c8f453653ec71da3b3508 Mon Sep 17 00:00:00 2001 From: emv Date: Thu, 14 Apr 2016 00:34:45 +0300 Subject: [PATCH] BRepOffset_Inter3d::ConnexIntByInt - Correct adding of the new section curves to the map of Ascendants/Descendants. --- src/BRepOffset/BRepOffset_Inter3d.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/BRepOffset/BRepOffset_Inter3d.cxx b/src/BRepOffset/BRepOffset_Inter3d.cxx index 52801fda75..f1f5d11fdb 100644 --- a/src/BRepOffset/BRepOffset_Inter3d.cxx +++ b/src/BRepOffset/BRepOffset_Inter3d.cxx @@ -735,9 +735,6 @@ void BRepOffset_Inter3d::ConnexIntByInt const TopoDS_Shape& aF1 = aLFF.First(); const TopoDS_Shape& aF2 = aLFF.Last(); // - TopTools_ListOfShape& aLFE1 = myAsDes->ChangeDescendant(aF1); - TopTools_ListOfShape& aLFE2 = myAsDes->ChangeDescendant(aF2); - // BOPCol_ListIteratorOfListOfShape aItLCBE(aLCBE); for (aItLCBE.Next(); aItLCBE.More(); aItLCBE.Next()) { // make new edge with different tedge instance @@ -750,8 +747,8 @@ void BRepOffset_Inter3d::ConnexIntByInt // BOPTools_AlgoTools::MakeSplitEdge(aE, aV1, aT1, aV2, aT2, aNewEdge); // - aLFE1.Append(aNewEdge); - aLFE2.Append(aNewEdge); + myAsDes->Add(aF1, aNewEdge); + myAsDes->Add(aF2, aNewEdge); // const TopoDS_Shape& aCB = aItLCBE.Value(); TopoDS_Iterator aItCB(aCB); -- 2.39.5