Open CASCADE Technology  7.2.0
Public Member Functions | Protected Member Functions

Extrema_ExtCC2d Class Reference

It calculates all the distance between two curves. These distances can be maximum or minimum. More...

#include <Extrema_ExtCC2d.hxx>

Public Member Functions

 Extrema_ExtCC2d ()
 
 Extrema_ExtCC2d (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const Standard_Real TolC1=1.0e-10, const Standard_Real TolC2=1.0e-10)
 It calculates all the distances. More...
 
 Extrema_ExtCC2d (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const Standard_Real U1, const Standard_Real U2, const Standard_Real V1, const Standard_Real V2, const Standard_Real TolC1=1.0e-10, const Standard_Real TolC2=1.0e-10)
 It calculates all the distances. More...
 
void Initialize (const Adaptor2d_Curve2d &C2, const Standard_Real V1, const Standard_Real V2, const Standard_Real TolC1=1.0e-10, const Standard_Real TolC2=1.0e-10)
 initializes the fields. More...
 
void Perform (const Adaptor2d_Curve2d &C1, const Standard_Real U1, const Standard_Real U2)
 
Standard_Boolean IsDone () const
 Returns True if the distances are found. More...
 
Standard_Integer NbExt () const
 Returns the number of extremum distances. More...
 
Standard_Boolean IsParallel () const
 Returns True if the two curves are parallel. More...
 
Standard_Real SquareDistance (const Standard_Integer N=1) const
 Returns the value of the Nth extremum square 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...
 
void TrimmedSquareDistances (Standard_Real &dist11, Standard_Real &distP12, Standard_Real &distP21, Standard_Real &distP22, gp_Pnt2d &P11, gp_Pnt2d &P12, gp_Pnt2d &P21, gp_Pnt2d &P22) const
 if the curve is a trimmed curve, dist11 is a square distance between the point on C1 of parameter FirstParameter and the point of parameter FirstParameter on C2. More...
 
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...
 

Protected Member Functions

void Results (const Extrema_ExtElC2d &AlgExt, const Standard_Real Ut11, const Standard_Real Ut12, const Standard_Real Ut21, const Standard_Real Ut22, const Standard_Real Period1=0.0, const Standard_Real Period2=0.0)
 
void Results (const Extrema_ECC2d &AlgExt, const Standard_Real Ut11, const Standard_Real Ut12, const Standard_Real Ut21, const Standard_Real Ut22, const Standard_Real Period1=0.0, const Standard_Real Period2=0.0)
 

Detailed Description

It calculates all the distance between two curves. These distances can be maximum or minimum.

Constructor & Destructor Documentation

◆ Extrema_ExtCC2d() [1/3]

Extrema_ExtCC2d::Extrema_ExtCC2d ( )

◆ Extrema_ExtCC2d() [2/3]

Extrema_ExtCC2d::Extrema_ExtCC2d ( const Adaptor2d_Curve2d C1,
const Adaptor2d_Curve2d C2,
const Standard_Real  TolC1 = 1.0e-10,
const Standard_Real  TolC2 = 1.0e-10 
)

It calculates all the distances.

◆ Extrema_ExtCC2d() [3/3]

Extrema_ExtCC2d::Extrema_ExtCC2d ( const Adaptor2d_Curve2d C1,
const Adaptor2d_Curve2d C2,
const Standard_Real  U1,
const Standard_Real  U2,
const Standard_Real  V1,
const Standard_Real  V2,
const Standard_Real  TolC1 = 1.0e-10,
const Standard_Real  TolC2 = 1.0e-10 
)

It calculates all the distances.

Member Function Documentation

◆ GetSingleSolutionFlag()

Standard_Boolean Extrema_ExtCC2d::GetSingleSolutionFlag ( ) const

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

◆ Initialize()

void Extrema_ExtCC2d::Initialize ( const Adaptor2d_Curve2d C2,
const Standard_Real  V1,
const Standard_Real  V2,
const Standard_Real  TolC1 = 1.0e-10,
const Standard_Real  TolC2 = 1.0e-10 
)

initializes the fields.

◆ IsDone()

Standard_Boolean Extrema_ExtCC2d::IsDone ( ) const

Returns True if the distances are found.

◆ IsParallel()

Standard_Boolean Extrema_ExtCC2d::IsParallel ( ) const

Returns True if the two curves are parallel.

◆ NbExt()

Standard_Integer Extrema_ExtCC2d::NbExt ( ) const

Returns the number of extremum distances.

◆ Perform()

void Extrema_ExtCC2d::Perform ( const Adaptor2d_Curve2d C1,
const Standard_Real  U1,
const Standard_Real  U2 
)

◆ Points()

void Extrema_ExtCC2d::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.

◆ Results() [1/2]

void Extrema_ExtCC2d::Results ( const Extrema_ExtElC2d AlgExt,
const Standard_Real  Ut11,
const Standard_Real  Ut12,
const Standard_Real  Ut21,
const Standard_Real  Ut22,
const Standard_Real  Period1 = 0.0,
const Standard_Real  Period2 = 0.0 
)
protected

◆ Results() [2/2]

void Extrema_ExtCC2d::Results ( const Extrema_ECC2d AlgExt,
const Standard_Real  Ut11,
const Standard_Real  Ut12,
const Standard_Real  Ut21,
const Standard_Real  Ut22,
const Standard_Real  Period1 = 0.0,
const Standard_Real  Period2 = 0.0 
)
protected

◆ SetSingleSolutionFlag()

void Extrema_ExtCC2d::SetSingleSolutionFlag ( const Standard_Boolean  theSingleSolutionFlag)

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

◆ SquareDistance()

Standard_Real Extrema_ExtCC2d::SquareDistance ( const Standard_Integer  N = 1) const

Returns the value of the Nth extremum square distance.

◆ TrimmedSquareDistances()

void Extrema_ExtCC2d::TrimmedSquareDistances ( Standard_Real dist11,
Standard_Real distP12,
Standard_Real distP21,
Standard_Real distP22,
gp_Pnt2d P11,
gp_Pnt2d P12,
gp_Pnt2d P21,
gp_Pnt2d P22 
) const

if the curve is a trimmed curve, dist11 is a square distance between the point on C1 of parameter FirstParameter and the point of parameter FirstParameter on C2.


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