MeshCore::MeshRefPointToFacets Class Reference

The MeshRefPointToFacets builds up a structure to have access to all facets indexing a point. More...

#include <Algorithm.h>

List of all members.

Public Member Functions

MeshFacetArray::_TConstIterator getFacet (unsigned long) const
Base::Vector3f GetNormal (unsigned long) const
 MeshRefPointToFacets (const MeshKernel &rclM)
 Construction.
std::set< unsigned long > NeighbourPoints (const std::vector< unsigned long > &, int level) const
void Neighbours (unsigned long ulFacetInd, float fMaxDist, std::vector< MeshFacetArray::_TConstIterator > &rclNb)
const std::set< unsigned long > & operator[] (unsigned long) const
void Rebuild (void)
 Rebuilds up data structure.
 ~MeshRefPointToFacets (void)
 Destruction.

Protected Member Functions

void SearchNeighbours (MeshFacetArray::_TConstIterator pFIter, const Base::Vector3f &rclCenter, float fMaxDist, std::vector< MeshFacetArray::_TConstIterator > &rclNb)

Protected Attributes

std::vector< std::set
< unsigned long > > 
_map
const MeshKernel_rclMesh
 The mesh kernel.

Detailed Description

The MeshRefPointToFacets builds up a structure to have access to all facets indexing a point.

Note:
If the underlying mesh kernel gets changed this structure becomes invalid and must be rebuilt.

Definition at line 319 of file Algorithm.h.


Constructor & Destructor Documentation

MeshCore::MeshRefPointToFacets::MeshRefPointToFacets ( const MeshKernel rclM  )  [inline]

Construction.

Definition at line 323 of file Algorithm.h.

MeshCore::MeshRefPointToFacets::~MeshRefPointToFacets ( void   )  [inline]

Destruction.

Definition at line 326 of file Algorithm.h.


Member Function Documentation

MeshFacetArray::_TConstIterator MeshRefPointToFacets::getFacet ( unsigned long  index  )  const

Definition at line 1779 of file Algorithm.cpp.

References _rclMesh, and MeshCore::MeshKernel::GetFacets().

Referenced by MeshCore::MeshAlgorithm::FillupHole().

Base::Vector3f MeshRefPointToFacets::GetNormal ( unsigned long  pos  )  const
std::set< unsigned long > MeshRefPointToFacets::NeighbourPoints ( const std::vector< unsigned long > &  pt,
int  level 
) const
void MeshRefPointToFacets::Neighbours ( unsigned long  ulFacetInd,
float  fMpxDist,
std::vector< MeshFacetArray::_TConstIterator > &  rclNb 
)
const std::set< unsigned long > & MeshRefPointToFacets::operator[] ( unsigned long  pos  )  const

Definition at line 1785 of file Algorithm.cpp.

References _map.

void MeshRefPointToFacets::Rebuild ( void   ) 

Rebuilds up data structure.

Definition at line 1682 of file Algorithm.cpp.

References _map, _rclMesh, MeshCore::MeshKernel::GetFacets(), and MeshCore::MeshKernel::GetPoints().

void MeshRefPointToFacets::SearchNeighbours ( MeshFacetArray::_TConstIterator  f_it,
const Base::Vector3f rclCenter,
float  fMpxDist,
std::vector< MeshFacetArray::_TConstIterator > &  rclNb 
) [protected]

Member Data Documentation

std::vector<std::set<unsigned long> > MeshCore::MeshRefPointToFacets::_map [protected]

Definition at line 343 of file Algorithm.h.

Referenced by GetNormal(), operator[](), and Rebuild().

The mesh kernel.

Definition at line 342 of file Algorithm.h.

Referenced by getFacet(), GetNormal(), NeighbourPoints(), Neighbours(), Rebuild(), and SearchNeighbours().


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