MeshKernel
|
A class used to improve mesh connectivity. More...
#include <FlipEdges.hpp>
Public Member Functions | |
FlipEdges (Mesh2D &mesh, LandBoundaries &landBoundary, bool triangulateFaces, bool projectToLandBoundary) | |
Constructor. More... | |
std::unique_ptr< UndoAction > | Compute () const |
Flip the edges. | |
A class used to improve mesh connectivity.
The edges are flipped in order to reduce the number of edges connected to a node The optimal number of edges to a node is six. If we additionally set triangulateFaces
to true, that results in triangles of 60° in each angle and therefore a nearly ideal mesh. An additional option projectToLandBoundary
defines whether we want to project to the land boundary.
meshkernel::FlipEdges::FlipEdges | ( | Mesh2D & | mesh, |
LandBoundaries & | landBoundary, | ||
bool | triangulateFaces, | ||
bool | projectToLandBoundary | ||
) |
Constructor.
[in] | mesh | The input mesh |
[in] | landBoundary | The land boundary |
[in] | triangulateFaces | Whether to triangulate all faces or not |
[in] | projectToLandBoundary | Whether to project to land boundaries or not |