32#include "MeshKernel/Constants.hpp"
33#include <MeshKernel/UndoActions/UndoAction.hpp>
57 bool triangulateFaces,
58 bool projectToLandBoundary);
61 [[nodiscard]] std::unique_ptr<UndoAction>
Compute()
const;
69 int ComputeTopologyFunctional(
UInt edge,
71 UInt& nodeRight)
const;
76 [[nodiscard]]
UInt OptimalNumberOfConnectedNodes(
UInt nodeIndex)
const;
81 [[nodiscard]]
int DifferenceFromOptimum(
UInt nodeIndex,
UInt firstNode,
UInt secondNode)
const;
86 void DeleteEdgeFromNode(
UInt edgeIndex,
UInt nodeIndex)
const;
91 bool m_triangulateFaces =
false;
92 bool m_projectToLandBoundary =
false;
A class used to improve mesh connectivity.
Definition FlipEdges.hpp:48
std::unique_ptr< UndoAction > Compute() const
Flip the edges.
FlipEdges(Mesh2D &mesh, LandBoundaries &landBoundary, bool triangulateFaces, bool projectToLandBoundary)
Constructor.
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
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