Disable SetSingleSolutionFlag when calling algorithm of curve-curve Extrema.
Now DistShapeShape will find all solutions, even if they are located on the same pair of edges.
The fix brings the speed down for the cases of coinciding curves.
BRep_Tool::Range(E1,U1,U2);
myExtCC.SetCurve (1, HC->Curve(), U1, U2);
myExtCC.SetTolerance(1, Tol);
- myExtCC.SetSingleSolutionFlag(Standard_True);
+ // If we enable SetSingleSolutionFlag Extrema will run much quicker on almost parallel curves
+ // (e.g. bug 27665), however some solutions will be lost, e.g. see bug 28183.
+ //myExtCC.SetSingleSolutionFlag(Standard_True);
myExtCC.Perform();
}
# BRepExtrema_DistShapeShape does not find all solutions
###############################################################################
-puts "TODO #28183 ALL: Error: .* solutions expected"
-
pload MODELING
restore [locate_data_file bug28175_borders2.brep] b