![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
It calculates all the extremum distances between a point and a surface. These distances can be minimum or maximum. More...
#include <Extrema_ExtPS.hxx>
Public Member Functions | |
| Extrema_ExtPS () | |
| Extrema_ExtPS (const gp_Pnt &P, const Adaptor3d_Surface &S, const double TolU, const double TolV, const Extrema_ExtFlag F=Extrema_ExtFlag_MINMAX, const Extrema_ExtAlgo A=Extrema_ExtAlgo_Grad) | |
| It calculates all the distances. NbU and NbV are used to locate the close points to find the zeros. They must be great enough such that if there is N extrema, there will be N extrema between P and the grid. TolU et TolV are used to determine the conditions to stop the iterations; at the iteration number n: (Un - Un-1) < TolU and (Vn - Vn-1) < TolV . | |
| Extrema_ExtPS (const gp_Pnt &P, const Adaptor3d_Surface &S, const double Uinf, const double Usup, const double Vinf, const double Vsup, const double TolU, const double TolV, const Extrema_ExtFlag F=Extrema_ExtFlag_MINMAX, const Extrema_ExtAlgo A=Extrema_ExtAlgo_Grad) | |
| It calculates all the distances. NbU and NbV are used to locate the close points to find the zeros. They must be great enough such that if there is N extrema, there will be N extrema between P and the grid. TolU et TolV are used to determine the conditions to stop the iterations; at the iteration number n: (Un - Un-1) < TolU and (Vn - Vn-1) < TolV . | |
| void | Initialize (const Adaptor3d_Surface &S, const double Uinf, const double Usup, const double Vinf, const double Vsup, const double TolU, const double TolV) |
| Initializes the fields of the algorithm. | |
| void | Perform (const gp_Pnt &P) |
| Computes the distances. An exception is raised if the fields have not been initialized. | |
| bool | IsDone () const |
| Returns True if the distances are found. | |
| int | NbExt () const |
| Returns the number of extremum distances. | |
| double | SquareDistance (const int N) const |
| Returns the value of the Nth resulting square distance. | |
| const Extrema_POnSurf & | Point (const int N) const |
| Returns the point of the Nth resulting distance. | |
| void | TrimmedSquareDistances (double &dUfVf, double &dUfVl, double &dUlVf, double &dUlVl, gp_Pnt &PUfVf, gp_Pnt &PUfVl, gp_Pnt &PUlVf, gp_Pnt &PUlVl) const |
| if the surface is a trimmed surface, dUfVf is a square distance between | |
| void | SetFlag (const Extrema_ExtFlag F) |
| void | SetAlgo (const Extrema_ExtAlgo A) |
It calculates all the extremum distances between a point and a surface. These distances can be minimum or maximum.
| Extrema_ExtPS::Extrema_ExtPS | ( | ) |
| Extrema_ExtPS::Extrema_ExtPS | ( | const gp_Pnt & | P, |
| const Adaptor3d_Surface & | S, | ||
| const double | TolU, | ||
| const double | TolV, | ||
| const Extrema_ExtFlag | F = Extrema_ExtFlag_MINMAX, | ||
| const Extrema_ExtAlgo | A = Extrema_ExtAlgo_Grad ) |
It calculates all the distances. NbU and NbV are used to locate the close points to find the zeros. They must be great enough such that if there is N extrema, there will be N extrema between P and the grid. TolU et TolV are used to determine the conditions to stop the iterations; at the iteration number n: (Un - Un-1) < TolU and (Vn - Vn-1) < TolV .
| Extrema_ExtPS::Extrema_ExtPS | ( | const gp_Pnt & | P, |
| const Adaptor3d_Surface & | S, | ||
| const double | Uinf, | ||
| const double | Usup, | ||
| const double | Vinf, | ||
| const double | Vsup, | ||
| const double | TolU, | ||
| const double | TolV, | ||
| const Extrema_ExtFlag | F = Extrema_ExtFlag_MINMAX, | ||
| const Extrema_ExtAlgo | A = Extrema_ExtAlgo_Grad ) |
It calculates all the distances. NbU and NbV are used to locate the close points to find the zeros. They must be great enough such that if there is N extrema, there will be N extrema between P and the grid. TolU et TolV are used to determine the conditions to stop the iterations; at the iteration number n: (Un - Un-1) < TolU and (Vn - Vn-1) < TolV .
| void Extrema_ExtPS::Initialize | ( | const Adaptor3d_Surface & | S, |
| const double | Uinf, | ||
| const double | Usup, | ||
| const double | Vinf, | ||
| const double | Vsup, | ||
| const double | TolU, | ||
| const double | TolV ) |
Initializes the fields of the algorithm.
| bool Extrema_ExtPS::IsDone | ( | ) | const |
Returns True if the distances are found.
| int Extrema_ExtPS::NbExt | ( | ) | const |
Returns the number of extremum distances.
Computes the distances. An exception is raised if the fields have not been initialized.
| const Extrema_POnSurf & Extrema_ExtPS::Point | ( | const int | N | ) | const |
Returns the point of the Nth resulting distance.
| void Extrema_ExtPS::SetAlgo | ( | const Extrema_ExtAlgo | A | ) |
| void Extrema_ExtPS::SetFlag | ( | const Extrema_ExtFlag | F | ) |
Returns the value of the Nth resulting square distance.
| void Extrema_ExtPS::TrimmedSquareDistances | ( | double & | dUfVf, |
| double & | dUfVl, | ||
| double & | dUlVf, | ||
| double & | dUlVl, | ||
| gp_Pnt & | PUfVf, | ||
| gp_Pnt & | PUfVl, | ||
| gp_Pnt & | PUlVf, | ||
| gp_Pnt & | PUlVl ) const |
if the surface is a trimmed surface, dUfVf is a square distance between
and the point of parameter FirstUParameter and FirstVParameter <PUfVf>. dUfVl is a square distance between
and the point of parameter FirstUParameter and LastVParameter <PUfVl>. dUlVf is a square distance between
and the point of parameter LastUParameter and FirstVParameter <PUlVf>. dUlVl is a square distance between
and the point of parameter LastUParameter and LastVParameter <PUlVl>.