|
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. | |
| std::unique_ptr< UndoAction > | Compute () const |
| Flip the edges. | |
| std::unique_ptr< UndoAction > | Compute (const Polygons &polygon) const |
| Flip the edges inside a polygon. | |
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 triangulateFacesto 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 or not to triangulate all faces before flipping edges |
| [in] | projectToLandBoundary | Whether or not to project to land boundaries |