u2 = Bsaux->LastParameter();
// modified by NIZHNY-EAP Fri Dec 3 14:29:18 1999 ___END___
}
+ const Standard_Real anU2Periodic =
+ Bsaux->IsPeriodic() ? (u2 - (Bsaux->LastParameter() - Bsaux->FirstParameter())) : u2;
Standard_Real aSegmentTol = 2. * Precision::PConfusion();
- if (Abs(u2 - u1) < aSegmentTol)
- aSegmentTol = Abs(u2 - u1) * 0.01;
+ if (Abs((anU2Periodic - u1) < aSegmentTol))
+ {
+ aSegmentTol = Abs(anU2Periodic - u1) * 0.01;
+ }
Bsaux->Segment(u1, u2, aSegmentTol);
Bs = Bsaux;
}
bopsection result
checkprops result -l 13.7747
-checknbshapes result -vertex 4 -edge 3
+checknbshapes result -vertex 3 -edge 2
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "========================================================================="
+puts "GH466: BRepBndLib::AddClose crashes"
+puts "========================================================================="
+puts ""
+
+pload QAcommands
+
+restore [locate_data_file bug_gh466.brep] result
+
+OCC566 result