fedoo.Mesh.get_volume

Mesh.get_volume(n_elm_gp: int | None = None)

Compute the total volume of the mesh (or surface for 2D meshes).

Parameters:

n_elm_gp (int or None, default = None) – Number of gauss points used on each element to compute the volume. If None, a default value is used depending on the element type.