1 This patch is for Opencascade 6.3. The bug is fixed in Opencascade 6.5.
3 diff --git a/ros/src/BRepMesh/BRepMesh_FastDiscret.cxx b/ros/src/BRepMesh/BRepMesh_FastDiscret.cxx
4 index 9ec6e90..9dc10bc 100644
5 --- a/ros/src/BRepMesh/BRepMesh_FastDiscret.cxx
6 +++ b/ros/src/BRepMesh/BRepMesh_FastDiscret.cxx
7 @@ -443,8 +443,11 @@ void BRepMesh_FastDiscret::Add(const TopoDS_Face& theface)
9 //clear the structure of links
10 const MeshDS_MapOfInteger& aLinks = structure->LinkOfDomain(nbDomains);
11 + TColStd_SequenceOfInteger toRemove;
12 for(MeshDS_MapOfInteger::Iterator anIter(aLinks);anIter.More();anIter.Next())
13 - structure->ForseRemoveLink(anIter.Key());
14 + toRemove.Append(anIter.Key());
15 + for (i = 1; i <= toRemove.Length(); i++)
16 + structure->ForseRemoveLink(toRemove.Value(i));
17 for (i = 1; i <= myvemap.Extent(); i++)
18 structure->ForseRemoveNode(myvemap.FindKey(i));