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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user