MeshCore::MeshSearchNeighbourFacetsVisitor Class Reference

Special mesh visitor that searches for facets within a given search radius. More...

#include <Visitor.h>

Inheritance diagram for MeshCore::MeshSearchNeighbourFacetsVisitor:
MeshCore::MeshFacetVisitor

List of all members.

Public Member Functions

std::vector< unsigned long > GetAndReset (void)
 Resets the VISIT flag of already visited facets.
 MeshSearchNeighbourFacetsVisitor (const MeshKernel &rclMesh, float fRadius, unsigned long ulStartFacetIdx)
bool Visit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, unsigned long ulFInd, unsigned long ulLevel)
 Checks the facet if it lies inside the search radius.
virtual ~MeshSearchNeighbourFacetsVisitor ()

Protected Attributes

bool _bFacetsFoundInCurrentLevel
Base::Vector3f _clCenter
 Center.
float _fRadius
 Search radius.
const MeshKernel_rclMeshBase
 The mesh kernel.
unsigned long _ulCurrentLevel
std::vector< unsigned long > _vecFacets
 Found facets.

Detailed Description

Special mesh visitor that searches for facets within a given search radius.

Definition at line 69 of file Visitor.h.


Constructor & Destructor Documentation

MeshSearchNeighbourFacetsVisitor::MeshSearchNeighbourFacetsVisitor ( const MeshKernel rclMesh,
float  fRadius,
unsigned long  ulStartFacetIdx 
)

Definition at line 161 of file Visitor.cpp.

virtual MeshCore::MeshSearchNeighbourFacetsVisitor::~MeshSearchNeighbourFacetsVisitor (  )  [inline, virtual]

Definition at line 73 of file Visitor.h.


Member Function Documentation

std::vector< unsigned long > MeshSearchNeighbourFacetsVisitor::GetAndReset ( void   )  [inline]

Resets the VISIT flag of already visited facets.

Definition at line 172 of file Visitor.cpp.

References _rclMeshBase, _vecFacets, and MeshCore::MeshFacet::VISIT.

bool MeshCore::MeshSearchNeighbourFacetsVisitor::Visit ( const MeshFacet rclFacet,
const MeshFacet rclFrom,
unsigned long  ulFInd,
unsigned long  ulLevel 
) [inline, virtual]

Member Data Documentation

Definition at line 84 of file Visitor.h.

Referenced by Visit().

Center.

Definition at line 81 of file Visitor.h.

Referenced by Visit().

Search radius.

Definition at line 82 of file Visitor.h.

Referenced by Visit().

The mesh kernel.

Definition at line 80 of file Visitor.h.

Referenced by GetAndReset(), and Visit().

Definition at line 83 of file Visitor.h.

Referenced by Visit().

std::vector<unsigned long> MeshCore::MeshSearchNeighbourFacetsVisitor::_vecFacets [protected]

Found facets.

Definition at line 85 of file Visitor.h.

Referenced by GetAndReset(), and Visit().


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

Generated on Wed Nov 23 19:02:25 2011 for FreeCAD by  doxygen 1.6.1