]> OCCT Git - occt-copy.git/commitdiff
BRepOffset_Inter3d::ConnexIntByInt - Correct adding of the new section curves to...
authoremv <emv@opencascade.com>
Wed, 13 Apr 2016 21:34:45 +0000 (00:34 +0300)
committermsv <msv@opencascade.com>
Fri, 22 Apr 2016 12:48:22 +0000 (15:48 +0300)
src/BRepOffset/BRepOffset_Inter3d.cxx

index 52801fda7554a6be487845ff45823eabed770aa3..f1f5d11fdb028c4bfc6a8f177c07d4bbdb57310e 100644 (file)
@@ -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);