Version: 8.3.0
SMESH_NodeSearcherImpl Struct Reference

Implementation of search for the node closest to point. More...

Inheritance diagram for SMESH_NodeSearcherImpl:

Public Member Functions

 SMESH_NodeSearcherImpl (const SMDS_Mesh *theMesh=0, SMDS_ElemIteratorPtr theElemIt=SMDS_ElemIteratorPtr())
 Constructor. More...
 
void MoveNode (const SMDS_MeshNode *node, const gp_Pnt &toPnt)
 Move node and update myOctreeNode accordingly. More...
 
const SMDS_MeshNodeFindClosestTo (const gp_Pnt &thePnt)
 Do it's job. More...
 
int FindNearPoint (const gp_Pnt &point, const double tolerance, std::vector< const SMDS_MeshNode * > &foundNodes)
 Finds nodes located within a tolerance near a point. More...
 
 ~SMESH_NodeSearcherImpl ()
 Destructor. More...
 
const SMESH_OctreeNodegetTree () const
 Return the node tree. More...
 

Private Attributes

SMESH_OctreeNodemyOctreeNode
 
SMDS_MeshmyMesh
 
double myHalfLeafSize
 

Detailed Description

Implementation of search for the node closest to point.

Constructor & Destructor Documentation

SMESH_NodeSearcherImpl::~SMESH_NodeSearcherImpl ( )

Destructor.

Member Function Documentation

int SMESH_NodeSearcherImpl::FindNearPoint ( const gp_Pnt &  point,
const double  tolerance,
std::vector< const SMDS_MeshNode * > &  foundNodes 
)
virtual

Finds nodes located within a tolerance near a point.

Implements SMESH_NodeSearcher.

Referenced by SMESH_ElementSearcherImpl::FindElementsByPoint().

const SMESH_OctreeNode* SMESH_NodeSearcherImpl::getTree ( ) const

Return the node tree.

Referenced by SMESH_ElementSearcherImpl::getTolerance().

void SMESH_NodeSearcherImpl::MoveNode ( const SMDS_MeshNode node,
const gp_Pnt &  toPnt 
)
virtual

Move node and update myOctreeNode accordingly.

Implements SMESH_NodeSearcher.

References SMDS_MeshNode::X().

Field Documentation

double SMESH_NodeSearcherImpl::myHalfLeafSize
private
SMDS_Mesh* SMESH_NodeSearcherImpl::myMesh
private
SMESH_OctreeNode* SMESH_NodeSearcherImpl::myOctreeNode
private