Compute the Casulli de-refinement for a mesh (derefine_mesh).
More...
#include <CasulliDeRefinement.hpp>
|
static std::unique_ptr< UndoAction > | Compute (Mesh2D &mesh) |
| Compute the Casulli de-refinement for the entire mesh.
|
|
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.
|
|
static std::vector< Point > | ElementsToDelete (const Mesh2D &mesh, const Polygons &polygon) |
| Compute centres of elements to be deleted.
|
|
Compute the Casulli de-refinement for a mesh (derefine_mesh).
◆ 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] | mesh | Mesh 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] | mesh | Mesh to be de-refined |
[in] | polygon | Area 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: