MeshKernel
Public Member Functions | List of all members
meshkernel::FlipEdges Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FlipEdges()

meshkernel::FlipEdges::FlipEdges ( Mesh2D mesh,
LandBoundaries landBoundary,
bool  triangulateFaces,
bool  projectToLandBoundary 
)

Constructor.

Parameters
[in]meshThe input mesh
[in]landBoundaryThe land boundary
[in]triangulateFacesWhether to triangulate all faces or not
[in]projectToLandBoundaryWhether to project to land boundaries or not

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