mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0026496: Error in use the BRepCheck_Analyzer
Implementation Propagate() function from MASTER (in BRepCheck_Wire)
This commit is contained in:
@@ -1549,6 +1549,7 @@ static void Propagate(const TopTools_IndexedDataMapOfShapeListOfShape& mapVE,
|
|||||||
for (; itrc.More(); itrc.Next())
|
for (; itrc.More(); itrc.Next())
|
||||||
{
|
{
|
||||||
const TopoDS_Shape& Edge = itrc.Value();
|
const TopoDS_Shape& Edge = itrc.Value();
|
||||||
|
if (!mapE.Contains(Edge))
|
||||||
mapE.Add(Edge);
|
mapE.Add(Edge);
|
||||||
|
|
||||||
TopExp_Explorer ex(Edge, TopAbs_VERTEX);
|
TopExp_Explorer ex(Edge, TopAbs_VERTEX);
|
||||||
@@ -1565,11 +1566,14 @@ static void Propagate(const TopTools_IndexedDataMapOfShapeListOfShape& mapVE,
|
|||||||
{
|
{
|
||||||
const TopoDS_Shape& E = itl.Value();
|
const TopoDS_Shape& E = itl.Value();
|
||||||
if (!Edge.IsSame(E) && !mapE.Contains(E))
|
if (!Edge.IsSame(E) && !mapE.Contains(E))
|
||||||
|
{
|
||||||
|
mapE.Add(E);
|
||||||
nextEdges.Append(E);
|
nextEdges.Append(E);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
currentEdges = nextEdges;
|
currentEdges = nextEdges;
|
||||||
}
|
}
|
||||||
while (!currentEdges.IsEmpty());
|
while (!currentEdges.IsEmpty());
|
||||||
|
Reference in New Issue
Block a user