Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
GeomAPI_ProjectPointOnCurve Class Reference

This class implements methods for computing all the orthogonal projections of a 3D point onto a 3D curve. More...

#include <GeomAPI_ProjectPointOnCurve.hxx>

Public Member Functions

 GeomAPI_ProjectPointOnCurve ()
 Creates an empty object. Use an Init function for further initialization.
 
 GeomAPI_ProjectPointOnCurve (const gp_Pnt &P, const occ::handle< Geom_Curve > &Curve)
 Create the projection of a point.
 
 GeomAPI_ProjectPointOnCurve (const gp_Pnt &P, const occ::handle< Geom_Curve > &Curve, const double Umin, const double Usup)
 Create the projection of a point.
 
void Init (const gp_Pnt &P, const occ::handle< Geom_Curve > &Curve)
 Init the projection of a point.
 
void Init (const gp_Pnt &P, const occ::handle< Geom_Curve > &Curve, const double Umin, const double Usup)
 Init the projection of a point.
 
void Init (const occ::handle< Geom_Curve > &Curve, const double Umin, const double Usup)
 Init the projection of a point.
 
void Perform (const gp_Pnt &P)
 Performs the projection of a point on the current curve.
 
int NbPoints () const
 Returns the number of computed orthogonal projection points. Note: if this algorithm fails, NbPoints returns 0.
 
 operator int () const
 
gp_Pnt Point (const int Index) const
 Returns the orthogonal projection on the curve. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.
 
double Parameter (const int Index) const
 Returns the parameter on the curve of the point, which is the orthogonal projection. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.
 
void Parameter (const int Index, double &U) const
 Returns the parameter on the curve of the point, which is the orthogonal projection. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.-.
 
double Distance (const int Index) const
 Computes the distance between the point and its orthogonal projection on the curve. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.
 
gp_Pnt NearestPoint () const
 Returns the nearest orthogonal projection of the point on the curve. Exceptions: StdFail_NotDone if this algorithm fails.
 
 operator gp_Pnt () const
 
double LowerDistanceParameter () const
 Returns the parameter on the curve of the nearest orthogonal projection of the point. Exceptions: StdFail_NotDone if this algorithm fails.
 
double LowerDistance () const
 Computes the distance between the point and its nearest orthogonal projection on the curve. Exceptions: StdFail_NotDone if this algorithm fails.
 
 operator double () const
 
const Extrema_ExtPCExtrema () const
 return the algorithmic object from Extrema
 

Detailed Description

This class implements methods for computing all the orthogonal projections of a 3D point onto a 3D curve.

Constructor & Destructor Documentation

◆ GeomAPI_ProjectPointOnCurve() [1/3]

GeomAPI_ProjectPointOnCurve::GeomAPI_ProjectPointOnCurve ( )

Creates an empty object. Use an Init function for further initialization.

◆ GeomAPI_ProjectPointOnCurve() [2/3]

GeomAPI_ProjectPointOnCurve::GeomAPI_ProjectPointOnCurve ( const gp_Pnt & P,
const occ::handle< Geom_Curve > & Curve )

Create the projection of a point.

on a curve <Curve>

◆ GeomAPI_ProjectPointOnCurve() [3/3]

GeomAPI_ProjectPointOnCurve::GeomAPI_ProjectPointOnCurve ( const gp_Pnt & P,
const occ::handle< Geom_Curve > & Curve,
const double Umin,
const double Usup )

Create the projection of a point.

on a curve <Curve> limited by the two points of parameter Umin and Usup.

Member Function Documentation

◆ Distance()

double GeomAPI_ProjectPointOnCurve::Distance ( const int Index) const

Computes the distance between the point and its orthogonal projection on the curve. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.

◆ Extrema()

const Extrema_ExtPC & GeomAPI_ProjectPointOnCurve::Extrema ( ) const

return the algorithmic object from Extrema

◆ Init() [1/3]

void GeomAPI_ProjectPointOnCurve::Init ( const gp_Pnt & P,
const occ::handle< Geom_Curve > & Curve )

Init the projection of a point.

on a curve <Curve>

◆ Init() [2/3]

void GeomAPI_ProjectPointOnCurve::Init ( const gp_Pnt & P,
const occ::handle< Geom_Curve > & Curve,
const double Umin,
const double Usup )

Init the projection of a point.

on a curve <Curve> limited by the two points of parameter Umin and Usup.

◆ Init() [3/3]

void GeomAPI_ProjectPointOnCurve::Init ( const occ::handle< Geom_Curve > & Curve,
const double Umin,
const double Usup )

Init the projection of a point.

on a curve <Curve> limited by the two points of parameter Umin and Usup.

◆ LowerDistance()

double GeomAPI_ProjectPointOnCurve::LowerDistance ( ) const

Computes the distance between the point and its nearest orthogonal projection on the curve. Exceptions: StdFail_NotDone if this algorithm fails.

◆ LowerDistanceParameter()

double GeomAPI_ProjectPointOnCurve::LowerDistanceParameter ( ) const

Returns the parameter on the curve of the nearest orthogonal projection of the point. Exceptions: StdFail_NotDone if this algorithm fails.

◆ NbPoints()

int GeomAPI_ProjectPointOnCurve::NbPoints ( ) const

Returns the number of computed orthogonal projection points. Note: if this algorithm fails, NbPoints returns 0.

◆ NearestPoint()

gp_Pnt GeomAPI_ProjectPointOnCurve::NearestPoint ( ) const

Returns the nearest orthogonal projection of the point on the curve. Exceptions: StdFail_NotDone if this algorithm fails.

◆ operator double()

GeomAPI_ProjectPointOnCurve::operator double ( ) const

◆ operator gp_Pnt()

GeomAPI_ProjectPointOnCurve::operator gp_Pnt ( ) const

◆ operator int()

GeomAPI_ProjectPointOnCurve::operator int ( ) const

◆ Parameter() [1/2]

double GeomAPI_ProjectPointOnCurve::Parameter ( const int Index) const

Returns the parameter on the curve of the point, which is the orthogonal projection. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.

◆ Parameter() [2/2]

void GeomAPI_ProjectPointOnCurve::Parameter ( const int Index,
double & U ) const

Returns the parameter on the curve of the point, which is the orthogonal projection. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.-.

◆ Perform()

void GeomAPI_ProjectPointOnCurve::Perform ( const gp_Pnt & P)

Performs the projection of a point on the current curve.

◆ Point()

gp_Pnt GeomAPI_ProjectPointOnCurve::Point ( const int Index) const

Returns the orthogonal projection on the curve. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.


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