32#include "MeshKernel/Constants.hpp"
33#include "MeshKernel/Polygons.hpp"
34#include "MeshKernel/UndoActions/UndoAction.hpp"
58 bool triangulateFaces,
59 bool projectToLandBoundary);
62 [[nodiscard]] std::unique_ptr<UndoAction>
Compute()
const;
73 int ComputeTopologyFunctional(
UInt edge,
75 UInt& nodeRight)
const;
80 [[nodiscard]]
UInt OptimalNumberOfConnectedNodes(
UInt nodeIndex)
const;
85 [[nodiscard]]
int DifferenceFromOptimum(
UInt nodeIndex,
UInt firstNode,
UInt secondNode)
const;
90 void DeleteEdgeFromNode(
UInt edgeIndex,
UInt nodeIndex)
const;
95 bool m_triangulateFaces =
false;
96 bool m_projectToLandBoundary =
false;
A class used to improve mesh connectivity.
Definition FlipEdges.hpp:49
std::unique_ptr< UndoAction > Compute() const
Flip the edges.
FlipEdges(Mesh2D &mesh, LandBoundaries &landBoundary, bool triangulateFaces, bool projectToLandBoundary)
Constructor.
std::unique_ptr< UndoAction > Compute(const Polygons &polygon) const
Flip the edges inside a polygon.
A class describing land boundaries. These are used to visualise the land-water interface.
Definition LandBoundaries.hpp:50
A class derived from Mesh, which describes unstructures 2d meshes.
Definition Mesh2D.hpp:58
A class containing a list of polygonaly enclosed regions.
Definition Polygons.hpp:45
Contains the logic of the C++ static library.
Definition AveragingInterpolation.hpp:37
std::uint32_t UInt
Integer type used when indexing mesh graph entities.
Definition Definitions.hpp:39