Special mesh visitor that searches for facets within a given search radius. More...
#include <Visitor.h>
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. | |
Special mesh visitor that searches for facets within a given search radius.
Definition at line 69 of file Visitor.h.
| MeshSearchNeighbourFacetsVisitor::MeshSearchNeighbourFacetsVisitor | ( | const MeshKernel & | rclMesh, | |
| float | fRadius, | |||
| unsigned long | ulStartFacetIdx | |||
| ) |
Definition at line 161 of file Visitor.cpp.
| virtual MeshCore::MeshSearchNeighbourFacetsVisitor::~MeshSearchNeighbourFacetsVisitor | ( | ) | [inline, virtual] |
| 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] |
Checks the facet if it lies inside the search radius.
Implements MeshCore::MeshFacetVisitor.
Definition at line 88 of file Visitor.h.
References MeshCore::MeshFacet::_aulPoints, _bFacetsFoundInCurrentLevel, _clCenter, _fRadius, _rclMeshBase, _ulCurrentLevel, _vecFacets, Base::Distance(), and MeshCore::MeshKernel::GetPoint().
float MeshCore::MeshSearchNeighbourFacetsVisitor::_fRadius [protected] |
const MeshKernel& MeshCore::MeshSearchNeighbourFacetsVisitor::_rclMeshBase [protected] |
unsigned long MeshCore::MeshSearchNeighbourFacetsVisitor::_ulCurrentLevel [protected] |
std::vector<unsigned long> MeshCore::MeshSearchNeighbourFacetsVisitor::_vecFacets [protected] |
1.6.1