Wrapper around the Triangle library.
More...
#include <TriangulationWrapper.hpp>
Wrapper around the Triangle library.
- See also
- https://www.cs.cmu.edu/~quake/triangle.html
◆ TriangulationOptions
Enumerator describing all triangulation options.
Enumerator |
---|
TriangulatePoints | generate Delaunay triangulation from input nodes
|
GeneratePoints | generate internal nodes in polygon that produce a Delaunay triangulation
|
TriangulatePointsAndGenerateFaces | generate Delaunay triangulation from input nodes with m_faceEdges and m_edgeNodes
|
◆ Compute()
template<std::derived_from< Point > T>
void meshkernel::TriangulationWrapper::Compute |
( |
const std::vector< T > & |
inputNodes, |
|
|
TriangulationOptions |
triangulationOption, |
|
|
double |
averageTriangleArea, |
|
|
UInt |
estimatedNumberOfTriangles |
|
) |
| |
|
inline |
Compute the triangulation.
- Template Parameters
-
T | A type that contains x and y fields |
- Parameters
-
inputNodes | The number of input points |
triangulationOption | Triangulation option, see TriangulationOptions |
averageTriangleArea | An estimation of the average area of triangles (required for option 2) |
estimatedNumberOfTriangles | An estimation of the average number of triangles (required for option 2) |
◆ GetCoord()
Point meshkernel::TriangulationWrapper::GetCoord |
( |
const UInt |
nodeIndex | ) |
const |
|
inline |
Retrieves the (x,y) coordinate of a triangulated node.
- Parameters
-
nodeIndex | The index of the node to retrieve |
- Returns
- Point
◆ GetEdgeFace()
UInt meshkernel::TriangulationWrapper::GetEdgeFace |
( |
const UInt |
edgeIndex, |
|
|
const UInt |
faceIndex |
|
) |
| const |
|
inline |
Retrieves the edge face.
- Parameters
-
edgeIndex | The index of the edge to retrieve the node from |
faceIndex | The index of the face to retrieve |
- Returns
- const reference to the edge with the specified index for the specified face
◆ GetEdgeNode()
UInt meshkernel::TriangulationWrapper::GetEdgeNode |
( |
const UInt |
edgeIndex, |
|
|
const UInt |
nodeIndex |
|
) |
| const |
|
inline |
Retrieves the edge node.
- Parameters
-
edgeIndex | The index of the edge to retrieve the node from |
nodeIndex | The index of the node to retrieve |
- Returns
- const reference to the node with the specified index for the specified face
◆ GetFaceEdge()
UInt meshkernel::TriangulationWrapper::GetFaceEdge |
( |
const UInt |
faceIndex, |
|
|
const UInt |
edgeIndex |
|
) |
| const |
|
inline |
Retrieves the face edge.
- Parameters
-
faceIndex | The index of the face to retrieve the edge from |
edgeIndex | The index of the edge to retrieve |
- Returns
- const reference to the edge with the specified index for the specified face
◆ GetFaceNode()
UInt meshkernel::TriangulationWrapper::GetFaceNode |
( |
const UInt |
faceIndex, |
|
|
const UInt |
nodeIndex |
|
) |
| const |
|
inline |
Retrieves the face node.
- Parameters
-
faceIndex | The index of the face to retrieve the node from |
nodeIndex | The index of the node to retrieve |
- Returns
- const reference to the node with the specified index for the specified face
◆ GetFaceNodes()
const std::vector<UInt>& meshkernel::TriangulationWrapper::GetFaceNodes |
( |
const UInt |
faceIndex | ) |
const |
|
inline |
Gets the nodes of a triangulated face.
- Parameters
-
- Returns
- The triangulated nodes
◆ GetNodes()
const std::vector<Point>& meshkernel::TriangulationWrapper::GetNodes |
( |
| ) |
const |
|
inline |
Gets the triangulated nodes.
- Returns
- The triangulated nodes
◆ GetNumEdges()
int meshkernel::TriangulationWrapper::GetNumEdges |
( |
| ) |
const |
|
inline |
Gets the number of triangulated edges.
- Returns
- The number of triangulated edges
◆ GetNumFaces()
int meshkernel::TriangulationWrapper::GetNumFaces |
( |
| ) |
const |
|
inline |
Gets the number of triangulated faces.
- Returns
- The number of triangulated faces
◆ GetNumNodes()
int meshkernel::TriangulationWrapper::GetNumNodes |
( |
| ) |
const |
|
inline |
Gets the number of triangulated nodes.
- Returns
- The number of triangulated nodes
◆ GetXCoord()
double meshkernel::TriangulationWrapper::GetXCoord |
( |
const UInt |
nodeIndex | ) |
const |
|
inline |
Retrieves the x coordinate of a triangulated node.
- Parameters
-
nodeIndex | The index of the node to retrieve |
- Returns
- const reference to the x coordinate
◆ GetYCoord()
double meshkernel::TriangulationWrapper::GetYCoord |
( |
const UInt |
nodeIndex | ) |
const |
|
inline |
Retrieves the y coordinate of a triangulated node.
- Parameters
-
nodeIndex | The index of the node to retrieve |
- Returns
- const reference to the y coordinate
The documentation for this struct was generated from the following file: