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< unsigned long > GetAndReset (void)
 Resets the VISIT flag of already visited facets. More...
 
 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. More...
 
virtual ~MeshSearchNeighbourFacetsVisitor ()
 
- Public Member Functions inherited from MeshCore::MeshFacetVisitor
virtual bool AllowVisit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, unsigned long 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 (void)
 Construction. More...
 
virtual ~MeshFacetVisitor (void)
 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,
unsigned long  ulStartFacetIdx 
)

◆ ~MeshSearchNeighbourFacetsVisitor()

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

Member Function Documentation

◆ GetAndReset()

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

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,
unsigned long  ulFInd,
unsigned long  ulLevel 
)
virtual

Checks the facet if it lies inside the search radius.

Implements MeshCore::MeshFacetVisitor.


The documentation for this class was generated from the following files:
  • src/Mod/Mesh/App/Core/Visitor.h
  • src/Mod/Mesh/App/Core/Visitor.cpp