Open CASCADE Technology  7.1.0.beta
Public Member Functions

Extrema_ECC2d Class Reference

#include <Extrema_ECC2d.hxx>

Public Member Functions

 Extrema_ECC2d ()
 Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2. More...
 
 Extrema_ECC2d (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2)
 It calculates all the distances. The function F(u,v)=distance(C1(u),C2(v)) has an extremum when gradient(f)=0. The algorithm uses Evtushenko's global optimization solver. More...
 
 Extrema_ECC2d (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const Standard_Real Uinf, const Standard_Real Usup, const Standard_Real Vinf, const Standard_Real Vsup)
 Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2. More...
 
void SetParams (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const Standard_Real Uinf, const Standard_Real Usup, const Standard_Real Vinf, const Standard_Real Vsup)
 Set params in case of empty constructor is usage. More...
 
void SetTolerance (const Standard_Real Tol)
 
void SetSingleSolutionFlag (const Standard_Boolean theSingleSolutionFlag)
 Set flag for single extrema computation. Works on parametric solver only. More...
 
Standard_Boolean GetSingleSolutionFlag () const
 Get flag for single extrema computation. Works on parametric solver only. More...
 
void Perform ()
 Performs calculations. More...
 
Standard_Boolean IsDone () const
 Returns True if the distances are found. More...
 
Standard_Boolean IsParallel () const
 Returns state of myParallel flag. More...
 
Standard_Integer NbExt () const
 Returns the number of extremum distances. More...
 
Standard_Real SquareDistance (const Standard_Integer N=1) const
 Returns the value of the Nth square extremum distance. More...
 
void Points (const Standard_Integer N, Extrema_POnCurv2d &P1, Extrema_POnCurv2d &P2) const
 Returns the points of the Nth extremum distance. P1 is on the first curve, P2 on the second one. More...
 

Constructor & Destructor Documentation

Extrema_ECC2d::Extrema_ECC2d ( )

Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2.

Extrema_ECC2d::Extrema_ECC2d ( const Adaptor2d_Curve2d C1,
const Adaptor2d_Curve2d C2 
)

It calculates all the distances. The function F(u,v)=distance(C1(u),C2(v)) has an extremum when gradient(f)=0. The algorithm uses Evtushenko's global optimization solver.

Extrema_ECC2d::Extrema_ECC2d ( const Adaptor2d_Curve2d C1,
const Adaptor2d_Curve2d C2,
const Standard_Real  Uinf,
const Standard_Real  Usup,
const Standard_Real  Vinf,
const Standard_Real  Vsup 
)

Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2.

Member Function Documentation

Standard_Boolean Extrema_ECC2d::GetSingleSolutionFlag ( ) const

Get flag for single extrema computation. Works on parametric solver only.

Standard_Boolean Extrema_ECC2d::IsDone ( ) const

Returns True if the distances are found.

Standard_Boolean Extrema_ECC2d::IsParallel ( ) const

Returns state of myParallel flag.

Standard_Integer Extrema_ECC2d::NbExt ( ) const

Returns the number of extremum distances.

void Extrema_ECC2d::Perform ( )

Performs calculations.

void Extrema_ECC2d::Points ( const Standard_Integer  N,
Extrema_POnCurv2d P1,
Extrema_POnCurv2d P2 
) const

Returns the points of the Nth extremum distance. P1 is on the first curve, P2 on the second one.

void Extrema_ECC2d::SetParams ( const Adaptor2d_Curve2d C1,
const Adaptor2d_Curve2d C2,
const Standard_Real  Uinf,
const Standard_Real  Usup,
const Standard_Real  Vinf,
const Standard_Real  Vsup 
)

Set params in case of empty constructor is usage.

void Extrema_ECC2d::SetSingleSolutionFlag ( const Standard_Boolean  theSingleSolutionFlag)

Set flag for single extrema computation. Works on parametric solver only.

void Extrema_ECC2d::SetTolerance ( const Standard_Real  Tol)
Standard_Real Extrema_ECC2d::SquareDistance ( const Standard_Integer  N = 1) const

Returns the value of the Nth square extremum distance.


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