Test case for issue CR26540
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++)
{
IsFirstL = Standard_False;
}
}
+ if (DistF > MaxTol)
+ IndexF = 0;
+ if (DistL > MaxTol)
+ IndexL = 0;
TopoDS_Wire theWire;
TopoDS_Edge theEdge;
TopoDS_Vertex theVertex;
smallview
-restore [locate_data_file OCC26481-linesarc.brep] a
+restore [locate_data_file bug26296_linesarc.brep] a
fit
openoffset r a 4 10.
fit
--- /dev/null
+puts "============"
+puts "OCC26540"
+puts "============"
+puts ""
+##################################
+# Errors in BRepOffsetAPI_MakeOffset: infinite loop in method FixHoles for closed results.
+##################################
+
+smallview
+
+restore [locate_data_file bug26296_linesarc.brep] a
+fit
+mkoffset result a 10 30
+fit
+
+set only_screen_axo 1