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

Compute the Casulli de-refinement for a mesh (derefine_mesh). More...

#include <CasulliDeRefinement.hpp>

Static Public Member Functions

static std::unique_ptr< UndoAction > Compute (Mesh2D &mesh)
 Compute the Casulli de-refinement for the entire mesh. More...
 
static std::unique_ptr< UndoAction > Compute (Mesh2D &mesh, const Polygons &polygon)
 Compute the Casulli de-refinement for the part of the mesh inside the polygon. More...
 
static std::vector< PointElementsToDelete (const Mesh2D &mesh, const Polygons &polygon)
 Compute centres of elements to be deleted. More...
 

Detailed Description

Compute the Casulli de-refinement for a mesh (derefine_mesh).

Member Function Documentation

◆ Compute() [1/2]

static std::unique_ptr<UndoAction> meshkernel::CasulliDeRefinement::Compute ( Mesh2D mesh)
static

Compute the Casulli de-refinement for the entire mesh.

Parameters
[in,out]meshMesh to be de-refined

◆ Compute() [2/2]

static std::unique_ptr<UndoAction> meshkernel::CasulliDeRefinement::Compute ( Mesh2D mesh,
const Polygons polygon 
)
static

Compute the Casulli de-refinement for the part of the mesh inside the polygon.

Parameters
[in,out]meshMesh to be de-refined
[in]polygonArea within which the mesh will be de-refined

◆ ElementsToDelete()

static std::vector<Point> meshkernel::CasulliDeRefinement::ElementsToDelete ( const Mesh2D mesh,
const Polygons polygon 
)
static

Compute centres of elements to be deleted.

Requires that the element mass-centres are pre-computed.


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