Open CASCADE Technology
7.1.0.beta
|
It calculates the distance between two curves with a close point; these distances can be maximum or minimum. More...
#include <Extrema_LocateExtCC2d.hxx>
Public Member Functions | |
Extrema_LocateExtCC2d (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const Standard_Real U0, const Standard_Real V0) | |
Calculates the distance with a close point. The close point is defined by a parameter value on each curve. The function F(u,v)=distance(C1(u),C2(v)) has an extremun when gradient(f)=0. The algorithm searchs the zero near the close point. 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... | |
void | Point (Extrema_POnCurv2d &P1, Extrema_POnCurv2d &P2) const |
Returns the points of the extremum distance. P1 is on the first curve, P2 on the second one. More... | |
It calculates the distance between two curves with a close point; these distances can be maximum or minimum.
Extrema_LocateExtCC2d::Extrema_LocateExtCC2d | ( | const Adaptor2d_Curve2d & | C1, |
const Adaptor2d_Curve2d & | C2, | ||
const Standard_Real | U0, | ||
const Standard_Real | V0 | ||
) |
Calculates the distance with a close point. The close point is defined by a parameter value on each curve. The function F(u,v)=distance(C1(u),C2(v)) has an extremun when gradient(f)=0. The algorithm searchs the zero near the close point.
Standard_Boolean Extrema_LocateExtCC2d::IsDone | ( | ) | const |
Returns True if the distance is found.
void Extrema_LocateExtCC2d::Point | ( | Extrema_POnCurv2d & | P1, |
Extrema_POnCurv2d & | P2 | ||
) | const |
Returns the points of the extremum distance. P1 is on the first curve, P2 on the second one.
Standard_Real Extrema_LocateExtCC2d::SquareDistance | ( | ) | const |
Returns the value of the extremum square distance.