Open CASCADE Technology  7.2.0
Public Member Functions
Extrema_GenLocateExtPS Class Reference

With a close point, it calculates the distance between a point and a surface. Criteria type is defined in "Perform" method. More...

#include <Extrema_GenLocateExtPS.hxx>

Public Member Functions

 Extrema_GenLocateExtPS (const Adaptor3d_Surface &theS, const Standard_Real theTolU=Precision::PConfusion(), const Standard_Real theTolV=Precision::PConfusion())
 Constructor. More...
 
void Perform (const gp_Pnt &theP, const Standard_Real theU0, const Standard_Real theV0, const Standard_Boolean isDistanceCriteria=Standard_False)
 Calculates the extrema between the point and the surface using a close point. The close point is defined by the parameter values theU0 and theV0. Type of the algorithm depends on the isDistanceCriteria flag. If flag value is false - normal projection criteria will be used. If flag value is true - distance criteria will be used. More...
 
Standard_Boolean IsDone () const
 Returns True if the distance is found. More...
 
Standard_Real SquareDistance () const
 Returns the value of the extremum square distance. More...
 
const Extrema_POnSurfPoint () const
 Returns the point of the extremum distance. More...
 

Detailed Description

With a close point, it calculates the distance between a point and a surface. Criteria type is defined in "Perform" method.

Constructor & Destructor Documentation

◆ Extrema_GenLocateExtPS()

Extrema_GenLocateExtPS::Extrema_GenLocateExtPS ( const Adaptor3d_Surface theS,
const Standard_Real  theTolU = Precision::PConfusion(),
const Standard_Real  theTolV = Precision::PConfusion() 
)

Constructor.

Member Function Documentation

◆ IsDone()

Standard_Boolean Extrema_GenLocateExtPS::IsDone ( ) const

Returns True if the distance is found.

◆ Perform()

void Extrema_GenLocateExtPS::Perform ( const gp_Pnt theP,
const Standard_Real  theU0,
const Standard_Real  theV0,
const Standard_Boolean  isDistanceCriteria = Standard_False 
)

Calculates the extrema between the point and the surface using a close point. The close point is defined by the parameter values theU0 and theV0. Type of the algorithm depends on the isDistanceCriteria flag. If flag value is false - normal projection criteria will be used. If flag value is true - distance criteria will be used.

◆ Point()

const Extrema_POnSurf& Extrema_GenLocateExtPS::Point ( ) const

Returns the point of the extremum distance.

◆ SquareDistance()

Standard_Real Extrema_GenLocateExtPS::SquareDistance ( ) const

Returns the value of the extremum square distance.


The documentation for this class was generated from the following file: