MeshCore::MeshRefPointToPoints Class Reference

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

Detailed Description

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.

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

Constructor & Destructor Documentation

◆ MeshRefPointToPoints()

MeshCore::MeshRefPointToPoints::MeshRefPointToPoints ( const MeshKernel rclM)

Construction.

◆ ~MeshRefPointToPoints()

MeshCore::MeshRefPointToPoints::~MeshRefPointToPoints ( )

Destruction.

Member Function Documentation

◆ AddNeighbour()

void MeshRefPointToPoints::AddNeighbour ( PointIndex  pos,
PointIndex  facet 
)

◆ GetAverageEdgeLength()

float MeshRefPointToPoints::GetAverageEdgeLength ( PointIndex  index) const

References Base::Distance().

◆ GetNormal()

◆ operator[]()

const std::set< PointIndex > & MeshRefPointToPoints::operator[] ( PointIndex  pos) const

◆ Rebuild()

void MeshRefPointToPoints::Rebuild ( )

Rebuilds up data structure.

◆ RemoveNeighbour()

void MeshRefPointToPoints::RemoveNeighbour ( PointIndex  pos,
PointIndex  facet 
)

The documentation for this class was generated from the following files: