MeshCore::MeshSearchNeighbourFacetsVisitor Class Reference

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

#include <Visitor.h>

Public Member Functions

std::vector< FacetIndexGetAndReset ()
 Resets the VISIT flag of already visited facets. More...
 
 MeshSearchNeighbourFacetsVisitor (const MeshKernel &rclMesh, float fRadius, FacetIndex ulStartFacetIdx)
 
bool Visit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, FacetIndex ulFInd, unsigned long ulLevel)
 Checks the facet if it lies inside the search radius. More...
 
virtual ~MeshSearchNeighbourFacetsVisitor ()
 
- Public Member Functions inherited from MeshCore::MeshFacetVisitor
virtual bool AllowVisit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, FacetIndex ulFInd, unsigned long ulLevel, unsigned short neighbourIndex)
 Test before a facet will be flagged as VISIT, return false means: go on with visiting the facets but not this one and set not the VISIT flag. More...
 
 MeshFacetVisitor ()
 Construction. More...
 
virtual bool Visit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, FacetIndex ulFInd, unsigned long ulLevel)=0
 Needs to be implemented in sub-classes. More...
 
virtual ~MeshFacetVisitor ()
 Denstruction. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ MeshSearchNeighbourFacetsVisitor()

MeshSearchNeighbourFacetsVisitor::MeshSearchNeighbourFacetsVisitor ( const MeshKernel rclMesh,
float  fRadius,
FacetIndex  ulStartFacetIdx 
)

◆ ~MeshSearchNeighbourFacetsVisitor()

virtual MeshCore::MeshSearchNeighbourFacetsVisitor::~MeshSearchNeighbourFacetsVisitor ( )
virtual

Member Function Documentation

◆ GetAndReset()

std::vector< FacetIndex > MeshSearchNeighbourFacetsVisitor::GetAndReset ( )

Resets the VISIT flag of already visited facets.

References MeshCore::MeshAlgorithm::ResetFacetsFlag(), and MeshCore::MeshFacet::VISIT.

◆ Visit()

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

Checks the facet if it lies inside the search radius.

Implements MeshCore::MeshFacetVisitor.

References Base::Distance().


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