20 #ifndef __LOCAL_MESH_COARSENING_H 21 #define __LOCAL_MESH_COARSENING_H 32 template <
typename T>
class MeshFunction;
43 bool coarsen_boundary =
false);
48 static bool coarsen_mesh_ok(
Mesh& mesh, std::size_t edge_index, std::size_t* edge_vertex,
52 static void collapse_edge(
Mesh& mesh,
Edge& edge,
55 std::vector<int>& old2new_vertex,
56 std::vector<int>& old2new_cell,
58 std::size_t& current_cell);
61 static bool coarsen_cell(
Mesh& mesh,
Mesh& coarse_mesh,
63 std::vector<int>& old2new_vertex,
64 std::vector<int>& old2new_cell,
65 bool coarsen_boundary =
false);
A Vertex is a MeshEntity of topological dimension 0.
Definition: Vertex.h:37
static void coarsen_mesh_by_edge_collapse(Mesh &mesh, MeshFunction< bool > &cell_marker, bool coarsen_boundary=false)
Coarsen simplicial mesh locally by edge collapse.
Definition: LocalMeshCoarsening.cpp:45
An Edge is a MeshEntity of topological dimension 1.
Definition: Edge.h:39
Definition: MeshEditor.h:36
This class implements local mesh coarsening for different mesh types.
Definition: LocalMeshCoarsening.h:36