FreeCAD C++
Public Member Functions | Protected Attributes | List of all members
MeshCore::MeshSearchNeighbourFacetsVisitor Class Reference

#include <Mod/Mesh/App/Core/Visitor.h>

Detailed Description

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

Public Member Functions

bool Visit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, unsigned long ulFInd, unsigned long ulLevel)
 
std::vector< unsigned long > GetAndReset (void)
 
- Public Member Functions inherited from MeshCore::MeshFacetVisitor
 MeshFacetVisitor (void)
 Construction.
 
virtual ~MeshFacetVisitor (void)
 Denstruction.
 
virtual bool AllowVisit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, unsigned long ulFInd, unsigned long ulLevel, unsigned short neighbourIndex)
 

Protected Attributes

const MeshKernel_rclMeshBase
 
Base::Vector3f _clCenter
 
float _fRadius
 
std::vector< unsigned long > _vecFacets
 

Member Function Documentation

◆ GetAndReset()

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

Resets the VISIT flag of already visited facets.

◆ 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.

Member Data Documentation

◆ _clCenter

Base::Vector3f MeshCore::MeshSearchNeighbourFacetsVisitor::_clCenter
protected

Center.

◆ _fRadius

float MeshCore::MeshSearchNeighbourFacetsVisitor::_fRadius
protected

Search radius.

◆ _rclMeshBase

const MeshKernel& MeshCore::MeshSearchNeighbourFacetsVisitor::_rclMeshBase
protected

The mesh kernel.

◆ _vecFacets

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

Found facets.