Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static 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 double theTolU=Precision::PConfusion(), const double theTolV=Precision::PConfusion())
 Constructor.
 
void Perform (const gp_Pnt &theP, const double theU0, const double theV0, const bool isDistanceCriteria=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.
 
bool IsDone () const
 Returns True if the distance is found.
 
double SquareDistance () const
 Returns the value of the extremum square distance.
 
const Extrema_POnSurfPoint () const
 Returns the point of the extremum distance.
 

Static Public Member Functions

static bool IsMinDist (const gp_Pnt &theP, const Adaptor3d_Surface &theS, const double theU0, const double theV0)
 Returns True if UV point theU0, theV0 is point of local minimum of square distance between point theP and points theS(U, V), U, V are in small area around theU0, theV0.
 

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 double theTolU = Precision::PConfusion(),
const double theTolV = Precision::PConfusion() )

Constructor.

Member Function Documentation

◆ IsDone()

bool Extrema_GenLocateExtPS::IsDone ( ) const

Returns True if the distance is found.

◆ IsMinDist()

static bool Extrema_GenLocateExtPS::IsMinDist ( const gp_Pnt & theP,
const Adaptor3d_Surface & theS,
const double theU0,
const double theV0 )
static

Returns True if UV point theU0, theV0 is point of local minimum of square distance between point theP and points theS(U, V), U, V are in small area around theU0, theV0.

◆ Perform()

void Extrema_GenLocateExtPS::Perform ( const gp_Pnt & theP,
const double theU0,
const double theV0,
const bool isDistanceCriteria = 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()

double Extrema_GenLocateExtPS::SquareDistance ( ) const

Returns the value of the extremum square distance.


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