1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0026540: Errors in BRepOffsetAPI_MakeOffset: infinite loop in method FixHoles for closed results.

Test case for issue CR26540
This commit is contained in:
jgv
2015-08-13 11:15:22 +03:00
committed by ski
parent 773d3a5a0b
commit 1232a76693
3 changed files with 22 additions and 2 deletions

View File

@@ -1590,7 +1590,7 @@ void BRepFill_OffsetWire::FixHoles()
Pf = BRep_Tool::Pnt(Vf);
Pl = BRep_Tool::Pnt(Vl);
Standard_Real DistF = RealLast(), DistL = RealLast();
Standard_Integer IndexF = 1, IndexL = 1;
Standard_Integer IndexF = 0, IndexL = 0;
Standard_Boolean IsFirstF = Standard_False, IsFirstL = Standard_False;
for (Standard_Integer i = 2; i <= UnclosedWires.Length(); i++)
{
@@ -1641,6 +1641,10 @@ void BRepFill_OffsetWire::FixHoles()
IsFirstL = Standard_False;
}
}
if (DistF > MaxTol)
IndexF = 0;
if (DistL > MaxTol)
IndexL = 0;
TopoDS_Wire theWire;
TopoDS_Edge theEdge;
TopoDS_Vertex theVertex;