1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026757: Wrong history of a fillet

Small correction

Test case for issue CR26757
This commit is contained in:
jgv
2015-10-30 16:23:53 +03:00
committed by bugmaster
parent a8686c759c
commit f33f393a11
3 changed files with 121 additions and 0 deletions

View File

@@ -2256,6 +2256,25 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
inters.Perform(HC, HGs);
if (inters.IsDone()&& inters.NbPoints()!=0) {
Fd->ChangeSurf(DStr.AddSurface(TopOpeBRepDS_Surface(S1, DStr.ChangeSurface(Isurf).Tolerance())));
//update history
if (myEVIMap.IsBound(EdgeSpine))
{
TColStd_ListIteratorOfListOfInteger itl(myEVIMap.ChangeFind(EdgeSpine));
for (; itl.More(); itl.Next())
if (itl.Value() == Isurf)
{
myEVIMap.ChangeFind(EdgeSpine).Remove(itl);
break;
}
myEVIMap.ChangeFind(EdgeSpine).Append(Fd->Surf());
}
else
{
TColStd_ListOfInteger IndexList;
IndexList.Append(Fd->Surf());
myEVIMap.Bind(EdgeSpine, IndexList);
}
////////////////
Isurf=Fd->Surf();
}
}