mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -617,8 +617,9 @@ static Standard_Real SQDistPointSurface(const gp_Pnt &thePnt,
|
||||
const Standard_Real theU0,
|
||||
const Standard_Real theV0)
|
||||
{
|
||||
const Extrema_GenLocateExtPS aExtPS(thePnt, theSurf, theU0, theV0,
|
||||
Precision::PConfusion(), Precision::PConfusion());
|
||||
Extrema_GenLocateExtPS aExtPS(theSurf);
|
||||
aExtPS.Perform(thePnt, theU0, theV0);
|
||||
|
||||
if(!aExtPS.IsDone())
|
||||
return RealLast();
|
||||
|
||||
|
Reference in New Issue
Block a user