Open CASCADE Technology  7.2.0
Public Member Functions | Static Public Member Functions
CPnts_AbscissaPoint Class Reference

the algorithm computes a point on a curve at a given distance from another point on the curve More...

#include <CPnts_AbscissaPoint.hxx>

Public Member Functions

 CPnts_AbscissaPoint ()
 
 CPnts_AbscissaPoint (const Adaptor3d_Curve &C, const Standard_Real Abscissa, const Standard_Real U0, const Standard_Real Resolution)
 the algorithm computes a point on a curve <Curve> at the distance <Abscissa> from the point of parameter <U0>. <Resolution> is the error allowed in the computation. The computed point can be outside of the curve 's bounds. More...
 
 CPnts_AbscissaPoint (const Adaptor2d_Curve2d &C, const Standard_Real Abscissa, const Standard_Real U0, const Standard_Real Resolution)
 the algorithm computes a point on a curve <Curve> at the distance <Abscissa> from the point of parameter <U0>. <Resolution> is the error allowed in the computation. The computed point can be outside of the curve 's bounds. More...
 
 CPnts_AbscissaPoint (const Adaptor3d_Curve &C, const Standard_Real Abscissa, const Standard_Real U0, const Standard_Real Ui, const Standard_Real Resolution)
 the algorithm computes a point on a curve <Curve> at the distance <Abscissa> from the point of parameter <U0>. <Ui> is the starting value used in the iterative process which find the solution, it must be closed to the final solution <Resolution> is the error allowed in the computation. The computed point can be outside of the curve 's bounds. More...
 
 CPnts_AbscissaPoint (const Adaptor2d_Curve2d &C, const Standard_Real Abscissa, const Standard_Real U0, const Standard_Real Ui, const Standard_Real Resolution)
 the algorithm computes a point on a curve <Curve> at the distance <Abscissa> from the point of parameter <U0>. <Ui> is the starting value used in the iterative process which find the solution, it must be closed to the final solution <Resolution> is the error allowed in the computation. The computed point can be outside of the curve 's bounds. More...
 
void Init (const Adaptor3d_Curve &C)
 Initializes the resolution function with . More...
 
void Init (const Adaptor2d_Curve2d &C)
 Initializes the resolution function with . More...
 
void Init (const Adaptor3d_Curve &C, const Standard_Real Tol)
 Initializes the resolution function with . More...
 
void Init (const Adaptor2d_Curve2d &C, const Standard_Real Tol)
 Initializes the resolution function with . More...
 
void Init (const Adaptor3d_Curve &C, const Standard_Real U1, const Standard_Real U2)
 Initializes the resolution function with between U1 and U2. More...
 
void Init (const Adaptor2d_Curve2d &C, const Standard_Real U1, const Standard_Real U2)
 Initializes the resolution function with between U1 and U2. More...
 
void Init (const Adaptor3d_Curve &C, const Standard_Real U1, const Standard_Real U2, const Standard_Real Tol)
 Initializes the resolution function with between U1 and U2. More...
 
void Init (const Adaptor2d_Curve2d &C, const Standard_Real U1, const Standard_Real U2, const Standard_Real Tol)
 Initializes the resolution function with between U1 and U2. More...
 
void Perform (const Standard_Real Abscissa, const Standard_Real U0, const Standard_Real Resolution)
 Computes the point at the distance <Abscissa> of the curve. U0 is the parameter of the point from which the distance is measured. More...
 
void Perform (const Standard_Real Abscissa, const Standard_Real U0, const Standard_Real Ui, const Standard_Real Resolution)
 Computes the point at the distance <Abscissa> of the curve. U0 is the parameter of the point from which the distance is measured and Ui is the starting value for the iterative process (should be close to the final solution). More...
 
void AdvPerform (const Standard_Real Abscissa, const Standard_Real U0, const Standard_Real Ui, const Standard_Real Resolution)
 Computes the point at the distance <Abscissa> of the curve; performs more appropriate tolerance managment; to use this method in right way it is necessary to call empty consructor. then call method Init with Tolerance = Resolution, then call AdvPermorm. U0 is the parameter of the point from which the distance is measured and Ui is the starting value for the iterative process (should be close to the final solution). More...
 
Standard_Boolean IsDone () const
 True if the computation was successful, False otherwise. More...
 
Standard_Real Parameter () const
 Returns the parameter of the solution. More...
 
void SetParameter (const Standard_Real P)
 Enforce the solution, used by GCPnts. More...
 

Static Public Member Functions

static Standard_Real Length (const Adaptor3d_Curve &C)
 Computes the length of the Curve . More...
 
static Standard_Real Length (const Adaptor2d_Curve2d &C)
 Computes the length of the Curve . More...
 
static Standard_Real Length (const Adaptor3d_Curve &C, const Standard_Real Tol)
 Computes the length of the Curve with the given tolerance. More...
 
static Standard_Real Length (const Adaptor2d_Curve2d &C, const Standard_Real Tol)
 Computes the length of the Curve with the given tolerance. More...
 
static Standard_Real Length (const Adaptor3d_Curve &C, const Standard_Real U1, const Standard_Real U2)
 Computes the length of the Curve between <U1> and <U2>. More...
 
static Standard_Real Length (const Adaptor2d_Curve2d &C, const Standard_Real U1, const Standard_Real U2)
 Computes the length of the Curve between <U1> and <U2>. More...
 
static Standard_Real Length (const Adaptor3d_Curve &C, const Standard_Real U1, const Standard_Real U2, const Standard_Real Tol)
 Computes the length of the Curve between <U1> and <U2> with the given tolerance. More...
 
static Standard_Real Length (const Adaptor2d_Curve2d &C, const Standard_Real U1, const Standard_Real U2, const Standard_Real Tol)
 Computes the length of the Curve between <U1> and <U2> with the given tolerance. creation of a indefinite AbscissaPoint. More...
 

Detailed Description

the algorithm computes a point on a curve at a given distance from another point on the curve

We can instantiates with Curve from Adaptor3d, Pnt from gp, Vec from gp

or Curve2d from Adaptor2d, Pnt2d from gp, Vec2d from gp

Constructor & Destructor Documentation

◆ CPnts_AbscissaPoint() [1/5]

CPnts_AbscissaPoint::CPnts_AbscissaPoint ( )

◆ CPnts_AbscissaPoint() [2/5]

CPnts_AbscissaPoint::CPnts_AbscissaPoint ( const Adaptor3d_Curve C,
const Standard_Real  Abscissa,
const Standard_Real  U0,
const Standard_Real  Resolution 
)

the algorithm computes a point on a curve <Curve> at the distance <Abscissa> from the point of parameter <U0>. <Resolution> is the error allowed in the computation. The computed point can be outside of the curve 's bounds.

◆ CPnts_AbscissaPoint() [3/5]

CPnts_AbscissaPoint::CPnts_AbscissaPoint ( const Adaptor2d_Curve2d C,
const Standard_Real  Abscissa,
const Standard_Real  U0,
const Standard_Real  Resolution 
)

the algorithm computes a point on a curve <Curve> at the distance <Abscissa> from the point of parameter <U0>. <Resolution> is the error allowed in the computation. The computed point can be outside of the curve 's bounds.

◆ CPnts_AbscissaPoint() [4/5]

CPnts_AbscissaPoint::CPnts_AbscissaPoint ( const Adaptor3d_Curve C,
const Standard_Real  Abscissa,
const Standard_Real  U0,
const Standard_Real  Ui,
const Standard_Real  Resolution 
)

the algorithm computes a point on a curve <Curve> at the distance <Abscissa> from the point of parameter <U0>. <Ui> is the starting value used in the iterative process which find the solution, it must be closed to the final solution <Resolution> is the error allowed in the computation. The computed point can be outside of the curve 's bounds.

◆ CPnts_AbscissaPoint() [5/5]

CPnts_AbscissaPoint::CPnts_AbscissaPoint ( const Adaptor2d_Curve2d C,
const Standard_Real  Abscissa,
const Standard_Real  U0,
const Standard_Real  Ui,
const Standard_Real  Resolution 
)

the algorithm computes a point on a curve <Curve> at the distance <Abscissa> from the point of parameter <U0>. <Ui> is the starting value used in the iterative process which find the solution, it must be closed to the final solution <Resolution> is the error allowed in the computation. The computed point can be outside of the curve 's bounds.

Member Function Documentation

◆ AdvPerform()

void CPnts_AbscissaPoint::AdvPerform ( const Standard_Real  Abscissa,
const Standard_Real  U0,
const Standard_Real  Ui,
const Standard_Real  Resolution 
)

Computes the point at the distance <Abscissa> of the curve; performs more appropriate tolerance managment; to use this method in right way it is necessary to call empty consructor. then call method Init with Tolerance = Resolution, then call AdvPermorm. U0 is the parameter of the point from which the distance is measured and Ui is the starting value for the iterative process (should be close to the final solution).

◆ Init() [1/8]

void CPnts_AbscissaPoint::Init ( const Adaptor3d_Curve C)

Initializes the resolution function with .

◆ Init() [2/8]

void CPnts_AbscissaPoint::Init ( const Adaptor2d_Curve2d C)

Initializes the resolution function with .

◆ Init() [3/8]

void CPnts_AbscissaPoint::Init ( const Adaptor3d_Curve C,
const Standard_Real  Tol 
)

Initializes the resolution function with .

◆ Init() [4/8]

void CPnts_AbscissaPoint::Init ( const Adaptor2d_Curve2d C,
const Standard_Real  Tol 
)

Initializes the resolution function with .

◆ Init() [5/8]

void CPnts_AbscissaPoint::Init ( const Adaptor3d_Curve C,
const Standard_Real  U1,
const Standard_Real  U2 
)

Initializes the resolution function with between U1 and U2.

◆ Init() [6/8]

void CPnts_AbscissaPoint::Init ( const Adaptor2d_Curve2d C,
const Standard_Real  U1,
const Standard_Real  U2 
)

Initializes the resolution function with between U1 and U2.

◆ Init() [7/8]

void CPnts_AbscissaPoint::Init ( const Adaptor3d_Curve C,
const Standard_Real  U1,
const Standard_Real  U2,
const Standard_Real  Tol 
)

Initializes the resolution function with between U1 and U2.

◆ Init() [8/8]

void CPnts_AbscissaPoint::Init ( const Adaptor2d_Curve2d C,
const Standard_Real  U1,
const Standard_Real  U2,
const Standard_Real  Tol 
)

Initializes the resolution function with between U1 and U2.

◆ IsDone()

Standard_Boolean CPnts_AbscissaPoint::IsDone ( ) const

True if the computation was successful, False otherwise.

◆ Length() [1/8]

static Standard_Real CPnts_AbscissaPoint::Length ( const Adaptor3d_Curve C)
static

Computes the length of the Curve .

◆ Length() [2/8]

static Standard_Real CPnts_AbscissaPoint::Length ( const Adaptor2d_Curve2d C)
static

Computes the length of the Curve .

◆ Length() [3/8]

static Standard_Real CPnts_AbscissaPoint::Length ( const Adaptor3d_Curve C,
const Standard_Real  Tol 
)
static

Computes the length of the Curve with the given tolerance.

◆ Length() [4/8]

static Standard_Real CPnts_AbscissaPoint::Length ( const Adaptor2d_Curve2d C,
const Standard_Real  Tol 
)
static

Computes the length of the Curve with the given tolerance.

◆ Length() [5/8]

static Standard_Real CPnts_AbscissaPoint::Length ( const Adaptor3d_Curve C,
const Standard_Real  U1,
const Standard_Real  U2 
)
static

Computes the length of the Curve between <U1> and <U2>.

◆ Length() [6/8]

static Standard_Real CPnts_AbscissaPoint::Length ( const Adaptor2d_Curve2d C,
const Standard_Real  U1,
const Standard_Real  U2 
)
static

Computes the length of the Curve between <U1> and <U2>.

◆ Length() [7/8]

static Standard_Real CPnts_AbscissaPoint::Length ( const Adaptor3d_Curve C,
const Standard_Real  U1,
const Standard_Real  U2,
const Standard_Real  Tol 
)
static

Computes the length of the Curve between <U1> and <U2> with the given tolerance.

◆ Length() [8/8]

static Standard_Real CPnts_AbscissaPoint::Length ( const Adaptor2d_Curve2d C,
const Standard_Real  U1,
const Standard_Real  U2,
const Standard_Real  Tol 
)
static

Computes the length of the Curve between <U1> and <U2> with the given tolerance. creation of a indefinite AbscissaPoint.

◆ Parameter()

Standard_Real CPnts_AbscissaPoint::Parameter ( ) const

Returns the parameter of the solution.

◆ Perform() [1/2]

void CPnts_AbscissaPoint::Perform ( const Standard_Real  Abscissa,
const Standard_Real  U0,
const Standard_Real  Resolution 
)

Computes the point at the distance <Abscissa> of the curve. U0 is the parameter of the point from which the distance is measured.

◆ Perform() [2/2]

void CPnts_AbscissaPoint::Perform ( const Standard_Real  Abscissa,
const Standard_Real  U0,
const Standard_Real  Ui,
const Standard_Real  Resolution 
)

Computes the point at the distance <Abscissa> of the curve. U0 is the parameter of the point from which the distance is measured and Ui is the starting value for the iterative process (should be close to the final solution).

◆ SetParameter()

void CPnts_AbscissaPoint::SetParameter ( const Standard_Real  P)

Enforce the solution, used by GCPnts.


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