FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
occ::BRepPointOnFacesProjection Class Reference

Framework to perform normal point projection on a soup of topologic faces. More...

#include <occtools/brep_point_on_faces_projection.h>

Public Member Functions

 BRepPointOnFacesProjection ()
 Construct an uninitialized BRepPointOnFacesProjection. More...
 
 BRepPointOnFacesProjection (const TopoDS_Shape &faces)
 Construct a BRepPointOnFacesProjection and call prepare() on faces. More...
 
 ~BRepPointOnFacesProjection ()
 
void releaseMemory ()
 
void prepare (const TopoDS_Shape &faces)
 Setup the algorithm to project points on faces. More...
 
BRepPointOnFacesProjectioncompute (const gp_Pnt &point)
 
bool isDone () const
 
const TopoDS_Face & solutionFace () const
 
gp_Pnt solutionPoint () const
 
std::pair< double, double > solutionUV () const
 
gp_Vec solutionNormal () const
 

Detailed Description

Framework to perform normal point projection on a soup of topologic faces.

Internally, the utility class GeomAPI_ProjectPointOnSurf is heavily used.
The algorithmics are pretty slow : for a point to be projected, the projection of that point is performed on each loaded TopoDS_Face with the help of GeomAPI_ProjectPointOnSurf.
The minimal distance amongst all the projection candidates is computed to get the final projected point

Constructor & Destructor Documentation

occ::BRepPointOnFacesProjection::BRepPointOnFacesProjection ( )

Construct an uninitialized BRepPointOnFacesProjection.

occ::BRepPointOnFacesProjection::BRepPointOnFacesProjection ( const TopoDS_Shape &  faces)

Construct a BRepPointOnFacesProjection and call prepare() on faces.

occ::BRepPointOnFacesProjection::~BRepPointOnFacesProjection ( )

Member Function Documentation

BRepPointOnFacesProjection & occ::BRepPointOnFacesProjection::compute ( const gp_Pnt &  point)
bool occ::BRepPointOnFacesProjection::isDone ( ) const
void occ::BRepPointOnFacesProjection::prepare ( const TopoDS_Shape &  faces)

Setup the algorithm to project points on faces.

Parameters
facesA soup of topologic faces
void occ::BRepPointOnFacesProjection::releaseMemory ( )
const TopoDS_Face & occ::BRepPointOnFacesProjection::solutionFace ( ) const
gp_Vec occ::BRepPointOnFacesProjection::solutionNormal ( ) const
gp_Pnt occ::BRepPointOnFacesProjection::solutionPoint ( ) const
std::pair< double, double > occ::BRepPointOnFacesProjection::solutionUV ( ) const

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