The MeshRefPointToPoints builds up a structure to have access to all neighbour points of a point. More...
#include <Algorithm.h>
Public Member Functions | |
float | GetAverageEdgeLength (unsigned long) const |
Base::Vector3f | GetNormal (unsigned long) const |
MeshRefPointToPoints (const MeshKernel &rclM) | |
Construction. | |
const std::set< unsigned long > & | operator[] (unsigned long) const |
void | Rebuild (void) |
Rebuilds up data structure. | |
~MeshRefPointToPoints (void) | |
Destruction. | |
Protected Attributes | |
std::vector< std::set < unsigned long > > | _map |
const MeshKernel & | _rclMesh |
The mesh kernel. |
The MeshRefPointToPoints builds up a structure to have access to all neighbour points of a point.
Two points are neighbours if there is an edge indexing both points.
Definition at line 379 of file Algorithm.h.
MeshCore::MeshRefPointToPoints::MeshRefPointToPoints | ( | const MeshKernel & | rclM | ) | [inline] |
Construction.
Definition at line 383 of file Algorithm.h.
MeshCore::MeshRefPointToPoints::~MeshRefPointToPoints | ( | void | ) | [inline] |
Destruction.
Definition at line 386 of file Algorithm.h.
float MeshRefPointToPoints::GetAverageEdgeLength | ( | unsigned long | index | ) | const |
Definition at line 1859 of file Algorithm.cpp.
References _rclMesh, Sketcher::Distance, MeshCore::MeshKernel::GetPoints(), and draftTools::p.
Base::Vector3f MeshRefPointToPoints::GetNormal | ( | unsigned long | pos | ) | const |
Definition at line 1840 of file Algorithm.cpp.
References _map, _rclMesh, MeshCore::Approximation::AddPoint(), MeshCore::PlaneFit::Fit(), MeshCore::PlaneFit::GetNormal(), MeshCore::MeshKernel::GetPoints(), and Base::Vector3< _Precision >::Normalize().
const std::set< unsigned long > & MeshRefPointToPoints::operator[] | ( | unsigned long | pos | ) | const |
Definition at line 1872 of file Algorithm.cpp.
References _map.
void MeshRefPointToPoints::Rebuild | ( | void | ) |
Rebuilds up data structure.
Definition at line 1818 of file Algorithm.cpp.
References _map, _rclMesh, MeshCore::MeshKernel::GetFacets(), and MeshCore::MeshKernel::GetPoints().
std::vector<std::set<unsigned long> > MeshCore::MeshRefPointToPoints::_map [protected] |
Definition at line 397 of file Algorithm.h.
Referenced by GetNormal(), operator[](), and Rebuild().
const MeshKernel& MeshCore::MeshRefPointToPoints::_rclMesh [protected] |
The mesh kernel.
Definition at line 396 of file Algorithm.h.
Referenced by GetAverageEdgeLength(), GetNormal(), and Rebuild().