mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0027466: The algorithm Extrema_GenLocateExtPS gives incorrect result
Euclidean distance criteria is added for local point / surface extrema. Classes representing objective criteria are renamed to be consistent. Local extrema usage is updated according to new behavior. Test case is added. Misprint correction.
This commit is contained in:
@@ -1312,8 +1312,9 @@ void IntTools_BeanFaceIntersector::ComputeRangeFromStartPoint(const Standard_Boo
|
||||
|
||||
//
|
||||
gp_Pnt aPoint = myCurve.Value(aCurPar);
|
||||
Extrema_GenLocateExtPS anExtrema(aPoint, mySurface, U, V, 1.e-10, 1.e-10);
|
||||
|
||||
Extrema_GenLocateExtPS anExtrema(mySurface, 1.e-10, 1.e-10);
|
||||
anExtrema.Perform(aPoint, U, V);
|
||||
|
||||
if(anExtrema.IsDone()) {
|
||||
if(anExtrema.SquareDistance() < myCriteria * myCriteria) {
|
||||
Extrema_POnSurf aPOnSurf = anExtrema.Point();
|
||||
|
Reference in New Issue
Block a user