mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028183: Modeling - BRepExtrema_DistShapeShape does not find all solutions
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.
This commit is contained in:
@@ -69,7 +69,9 @@ void BRepExtrema_ExtCC::Perform(const TopoDS_Edge& E1)
|
||||
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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user