The MeshRefPointToPoints builds up a structure to have access to all neighbour points
of a point.
More...
#include <Algorithm.h>
Public Member Functions | |
void | AddNeighbour (PointIndex, PointIndex) |
float | GetAverageEdgeLength (PointIndex) const |
Base::Vector3f | GetNormal (PointIndex) const |
MeshRefPointToPoints (const MeshKernel &rclM) | |
Construction. More... | |
const std::set< PointIndex > & | operator[] (PointIndex) const |
void | Rebuild () |
Rebuilds up data structure. More... | |
void | RemoveNeighbour (PointIndex, PointIndex) |
~MeshRefPointToPoints () | |
Destruction. More... | |
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.
MeshCore::MeshRefPointToPoints::MeshRefPointToPoints | ( | const MeshKernel & | rclM | ) |
Construction.
MeshCore::MeshRefPointToPoints::~MeshRefPointToPoints | ( | ) |
Destruction.
void MeshRefPointToPoints::AddNeighbour | ( | PointIndex | pos, |
PointIndex | facet | ||
) |
float MeshRefPointToPoints::GetAverageEdgeLength | ( | PointIndex | index | ) | const |
References Base::Distance().
Base::Vector3f MeshRefPointToPoints::GetNormal | ( | PointIndex | pos | ) | const |
const std::set< PointIndex > & MeshRefPointToPoints::operator[] | ( | PointIndex | pos | ) | const |
void MeshRefPointToPoints::Rebuild | ( | ) |
Rebuilds up data structure.
void MeshRefPointToPoints::RemoveNeighbour | ( | PointIndex | pos, |
PointIndex | facet | ||
) |