|
MeshKernel
|
Contains a mesh triangulated from a set of points. More...
#include <MeshTriangulation.hpp>
Public Member Functions | |
| MeshTriangulation (const std::span< const Point > nodes, const Projection projection) | |
| Constructor with array of points. | |
| MeshTriangulation (const std::span< const double > xNodes, const std::span< const double > yNodes, const Projection projection) | |
| Constructor with separate arrays of x- and y-coordinates. | |
| Projection | GetProjection () const |
| Get the projection type used in the triangulation. | |
| UInt | NumberOfNodes () const |
| Get the number of nodes in the triangulation. | |
| UInt | NumberOfEdges () const |
| Get the number of edges in the triangulation. | |
| UInt | NumberOfFaces () const |
| Get the number of faces/elements in the triangulation. | |
| Point | GetNode (const UInt nodeId) const |
| Get node as the position. | |
| Edge | GetEdge (const UInt nodeId) const |
| Get edge as the position. | |
| std::array< Point, 3 > | GetNodes (const UInt faceId) const |
| Get the node values of the element. | |
| std::array< UInt, 3 > | GetNodeIds (const UInt faceId) const |
| Get the node id's of the element. | |
| std::array< UInt, 3 > | GetEdgeIds (const UInt faceId) const |
| Get the edge id's of the element. | |
| const std::array< UInt, 2 > & | GetFaceIds (const UInt edgeId) const |
| Get the id's of faces either side of the edge. | |
| UInt | FindNearestFace (const Point &pnt) const |
| Find the nearest face to the point. | |
| bool | PointIsInElement (const Point &pnt, const UInt faceId) const |
| Determine if the point lies within the element. | |
Contains a mesh triangulated from a set of points.
Contains the original set of nodes, the edges connecting nodes and the set of elements/faces making up the triangulation.
|
inline |
Get the id's of faces either side of the edge.
May return invalid identifier in one or both values