OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKGeomAlgo
GeomAPI


GeomAPI_ProjectPointOnSurf Class Reference

This class implements methods for computing all the orthogonal
projections of a point onto a surface.
.

#include <GeomAPI_ProjectPointOnSurf.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT GeomAPI_ProjectPointOnSurf ()
 Creates an empty object. Use the
Init function for further initialization.
.
Standard_EXPORT GeomAPI_ProjectPointOnSurf (const gp_Pnt &P, const Handle(Geom_Surface)&Surface)
 Create the projection of a point

on a surface
<surface>
.

Standard_EXPORT GeomAPI_ProjectPointOnSurf (const gp_Pnt &P, const Handle(Geom_Surface)&Surface, const Standard_Real Tolerance)
 Create the projection of a point

on a surface
<surface>
//! Create the projection of a point

on a surface
<surface>. The solution are computed in the domain
[Umin,Usup] [Vmin,Vsup] of the surface.
.

Standard_EXPORT GeomAPI_ProjectPointOnSurf (const gp_Pnt &P, const Handle(Geom_Surface)&Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Standard_Real Tolerance)
Standard_EXPORT GeomAPI_ProjectPointOnSurf (const gp_Pnt &P, const Handle(Geom_Surface)&Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup)
 Init the projection of a point

on a surface
<surface>
.

Standard_EXPORT void Init (const gp_Pnt &P, const Handle(Geom_Surface)&Surface, const Standard_Real Tolerance)
Standard_EXPORT void Init (const gp_Pnt &P, const Handle(Geom_Surface)&Surface)
 Init the projection of a point

on a surface
<surface>. The solution are computed in the domain
[Umin,Usup] [Vmin,Vsup] of the surface.
.

Standard_EXPORT void Init (const gp_Pnt &P, const Handle(Geom_Surface)&Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Standard_Real Tolerance)
Standard_EXPORT void Init (const gp_Pnt &P, const Handle(Geom_Surface)&Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup)
 Init the projection for many points on a surface
<surface>. The solutions will be computed in the domain
[Umin,Usup] [Vmin,Vsup] of the surface.
.
Standard_EXPORT void Init (const Handle(Geom_Surface)&Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Standard_Real Tolerance)
Standard_EXPORT void Init (const Handle(Geom_Surface)&Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup)
Standard_EXPORT void Perform (const gp_Pnt &P)
 Performs the projection of a point on the current surface.
.
Standard_EXPORT Standard_Boolean IsDone () const
Standard_EXPORT Standard_Integer NbPoints () const
 Returns the number of computed orthogonal projection points.
Note: if projection fails, NbPoints returns 0.
.
Standard_EXPORT operator Standard_Integer () const
Standard_EXPORT gp_Pnt Point (const Standard_Integer Index) const
 Returns the orthogonal projection
on the surface. 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.
.
Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter &U, Quantity_Parameter &V) const
 Returns the parameters (U,V) on the
surface of 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.
.
Standard_EXPORT Quantity_Length Distance (const Standard_Integer Index) const
 Computes the distance between the
point and its orthogonal projection on the surface. 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.
.
Standard_EXPORT gp_Pnt NearestPoint () const
 Returns the nearest orthogonal projection of the point
on the surface.
Exceptions
StdFail_NotDone if projection fails.
.
Standard_EXPORT operator gp_Pnt () const
Standard_EXPORT void LowerDistanceParameters (Quantity_Parameter &U, Quantity_Parameter &V) const
 Returns the parameters (U,V) on the
surface of the nearest computed orthogonal projection of the point.
Exceptions
StdFail_NotDone if projection fails.
.
Standard_EXPORT Quantity_Length LowerDistance () const
 Computes the distance between the
point and its nearest orthogonal projection on the surface.
Exceptions
StdFail_NotDone if projection fails.
.
Standard_EXPORT operator Standard_Real () const
const Extrema_ExtPS & Extrema () const
 return the algorithmic object from Extrema


Private Member Functions

Standard_EXPORT void Init ()

Private Attributes

Standard_Boolean myIsDone
Standard_Integer myIndex
Extrema_ExtPS myExtPS
GeomAdaptor_Surface myGeomAdaptor


Constructor & Destructor Documentation

Standard_EXPORT GeomAPI_ProjectPointOnSurf::GeomAPI_ProjectPointOnSurf  ) 
 

Standard_EXPORT GeomAPI_ProjectPointOnSurf::GeomAPI_ProjectPointOnSurf const gp_Pnt &  P,
const Handle(Geom_Surface)&  Surface
 

Standard_EXPORT GeomAPI_ProjectPointOnSurf::GeomAPI_ProjectPointOnSurf const gp_Pnt &  P,
const Handle(Geom_Surface)&  Surface,
const Standard_Real  Tolerance
 

Standard_EXPORT GeomAPI_ProjectPointOnSurf::GeomAPI_ProjectPointOnSurf const gp_Pnt &  P,
const Handle(Geom_Surface)&  Surface,
const Quantity_Parameter  Umin,
const Quantity_Parameter  Usup,
const Quantity_Parameter  Vmin,
const Quantity_Parameter  Vsup,
const Standard_Real  Tolerance
 

Standard_EXPORT GeomAPI_ProjectPointOnSurf::GeomAPI_ProjectPointOnSurf const gp_Pnt &  P,
const Handle(Geom_Surface)&  Surface,
const Quantity_Parameter  Umin,
const Quantity_Parameter  Usup,
const Quantity_Parameter  Vmin,
const Quantity_Parameter  Vsup
 


Member Function Documentation

Standard_EXPORT Quantity_Length GeomAPI_ProjectPointOnSurf::Distance const Standard_Integer  Index  )  const
 

const Extrema_ExtPS & GeomAPI_ProjectPointOnSurf::Extrema  )  const [inline]
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Init  )  [private]
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Init const Handle(Geom_Surface)&  Surface,
const Quantity_Parameter  Umin,
const Quantity_Parameter  Usup,
const Quantity_Parameter  Vmin,
const Quantity_Parameter  Vsup
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Init const Handle(Geom_Surface)&  Surface,
const Quantity_Parameter  Umin,
const Quantity_Parameter  Usup,
const Quantity_Parameter  Vmin,
const Quantity_Parameter  Vsup,
const Standard_Real  Tolerance
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Init const gp_Pnt &  P,
const Handle(Geom_Surface)&  Surface,
const Quantity_Parameter  Umin,
const Quantity_Parameter  Usup,
const Quantity_Parameter  Vmin,
const Quantity_Parameter  Vsup
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Init const gp_Pnt &  P,
const Handle(Geom_Surface)&  Surface,
const Quantity_Parameter  Umin,
const Quantity_Parameter  Usup,
const Quantity_Parameter  Vmin,
const Quantity_Parameter  Vsup,
const Standard_Real  Tolerance
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Init const gp_Pnt &  P,
const Handle(Geom_Surface)&  Surface
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Init const gp_Pnt &  P,
const Handle(Geom_Surface)&  Surface,
const Standard_Real  Tolerance
 

Standard_EXPORT Standard_Boolean GeomAPI_ProjectPointOnSurf::IsDone  )  const
 

Standard_EXPORT Quantity_Length GeomAPI_ProjectPointOnSurf::LowerDistance  )  const
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::LowerDistanceParameters Quantity_Parameter &  U,
Quantity_Parameter &  V
const
 

Standard_EXPORT Standard_Integer GeomAPI_ProjectPointOnSurf::NbPoints  )  const
 

Standard_EXPORT gp_Pnt GeomAPI_ProjectPointOnSurf::NearestPoint  )  const
 

void GeomAPI_ProjectPointOnSurf::operator delete void *  anAddress  )  [inline]
 

Standard_EXPORT GeomAPI_ProjectPointOnSurf::operator gp_Pnt  )  const
 

void* GeomAPI_ProjectPointOnSurf::operator new size_t  size  )  [inline]
 

void* GeomAPI_ProjectPointOnSurf::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT GeomAPI_ProjectPointOnSurf::operator Standard_Integer  )  const
 

Standard_EXPORT GeomAPI_ProjectPointOnSurf::operator Standard_Real  )  const
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Parameters const Standard_Integer  Index,
Quantity_Parameter &  U,
Quantity_Parameter &  V
const
 

Standard_EXPORT void GeomAPI_ProjectPointOnSurf::Perform const gp_Pnt &  P  ) 
 

Standard_EXPORT gp_Pnt GeomAPI_ProjectPointOnSurf::Point const Standard_Integer  Index  )  const
 


Field Documentation

Extrema_ExtPS GeomAPI_ProjectPointOnSurf::myExtPS [private]
 

GeomAdaptor_Surface GeomAPI_ProjectPointOnSurf::myGeomAdaptor [private]
 

Standard_Integer GeomAPI_ProjectPointOnSurf::myIndex [private]
 

Standard_Boolean GeomAPI_ProjectPointOnSurf::myIsDone [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:41:49 2008 for OpenCASCADE by  doxygen 1.4.1