Open CASCADE Technology  7.6.0
Public Member Functions

Extrema_ECC Class Reference

#include <Extrema_ECC.hxx>

Public Member Functions

 Extrema_ECC ()
 Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2. More...
 
 Extrema_ECC (const Adaptor3d_Curve &C1, const Adaptor3d_Curve &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_ECC (const Adaptor3d_Curve &C1, const Adaptor3d_Curve &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 Adaptor3d_Curve &C1, const Adaptor3d_Curve &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_POnCurv &P1, Extrema_POnCurv &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_ECC() [1/3]

Extrema_ECC::Extrema_ECC ( )

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

◆ Extrema_ECC() [2/3]

Extrema_ECC::Extrema_ECC ( const Adaptor3d_Curve C1,
const Adaptor3d_Curve 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_ECC() [3/3]

Extrema_ECC::Extrema_ECC ( const Adaptor3d_Curve C1,
const Adaptor3d_Curve 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

◆ GetSingleSolutionFlag()

Standard_Boolean Extrema_ECC::GetSingleSolutionFlag ( ) const

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

◆ IsDone()

Standard_Boolean Extrema_ECC::IsDone ( ) const

Returns True if the distances are found.

◆ IsParallel()

Standard_Boolean Extrema_ECC::IsParallel ( ) const

Returns state of myParallel flag.

◆ NbExt()

Standard_Integer Extrema_ECC::NbExt ( ) const

Returns the number of extremum distances.

◆ Perform()

void Extrema_ECC::Perform ( )

Performs calculations.

◆ Points()

void Extrema_ECC::Points ( const Standard_Integer  N,
Extrema_POnCurv P1,
Extrema_POnCurv P2 
) const

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

◆ SetParams()

void Extrema_ECC::SetParams ( const Adaptor3d_Curve C1,
const Adaptor3d_Curve 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.

◆ SetSingleSolutionFlag()

void Extrema_ECC::SetSingleSolutionFlag ( const Standard_Boolean  theSingleSolutionFlag)

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

◆ SetTolerance()

void Extrema_ECC::SetTolerance ( const Standard_Real  Tol)

◆ SquareDistance()

Standard_Real Extrema_ECC::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: