The MeshRefPointToFacets builds up a structure to have access to all facets indexing a point. More...
#include <Algorithm.h>
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. | |
The MeshRefPointToFacets builds up a structure to have access to all facets indexing a point.
Definition at line 319 of file Algorithm.h.
| 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.
| 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 |
Definition at line 1698 of file Algorithm.cpp.
References _map, _rclMesh, MeshCore::MeshGeomFacet::Area(), SketcherExample::f, MeshCore::MeshKernel::GetFacet(), MeshCore::MeshGeomFacet::GetNormal(), and Base::Vector3< _Precision >::Normalize().
| std::set< unsigned long > MeshRefPointToFacets::NeighbourPoints | ( | const std::vector< unsigned long > & | pt, | |
| int | level | |||
| ) | const |
Definition at line 1712 of file Algorithm.cpp.
References _rclMesh, and MeshCore::MeshKernel::GetFacets().
Referenced by MeshCore::MeshEvalFoldsOnSurface::Evaluate(), and MeshCore::MeshAlgorithm::FillupHole().
| void MeshRefPointToFacets::Neighbours | ( | unsigned long | ulFacetInd, | |
| float | fMpxDist, | |||
| std::vector< MeshFacetArray::_TConstIterator > & | rclNb | |||
| ) |
Definition at line 1743 of file Algorithm.cpp.
References _rclMesh, MeshCore::MeshKernel::GetFacet(), MeshCore::MeshKernel::GetFacets(), MeshCore::MeshGeomFacet::GetGravityPoint(), SearchNeighbours(), and MeshCore::MeshFacet::VISIT.
| 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] |
Definition at line 1756 of file Algorithm.cpp.
References _rclMesh, Base::DistanceP2(), SketcherExample::f, MeshCore::MeshKernel::GetFacet(), MeshCore::MeshKernel::GetFacets(), MeshCore::MeshGeomFacet::GetGravityPoint(), and MeshCore::MeshFacet::VISIT.
Referenced by Neighbours().
std::vector<std::set<unsigned long> > MeshCore::MeshRefPointToFacets::_map [protected] |
Definition at line 343 of file Algorithm.h.
Referenced by GetNormal(), operator[](), and Rebuild().
const MeshKernel& MeshCore::MeshRefPointToFacets::_rclMesh [protected] |
The mesh kernel.
Definition at line 342 of file Algorithm.h.
Referenced by getFacet(), GetNormal(), NeighbourPoints(), Neighbours(), Rebuild(), and SearchNeighbours().
1.6.1