pub fn compute_volume(
local_vertices: &[CartesianCoordinates],
elem_type: VolumeElementTypes,
) -> Option<f64>Expand description
Computes the total volume of a given volume element by summing the volumes of its tetrahedral subdivisions.
§Arguments
local_vertices- A slice of the 3D coordinates of the element’s vertices.elem_type- The type of the volume element (e.g., Hexa8, Penta6).
§Returns
An Option<f64> containing the total volume if the input is valid.
Returns None if the number of vertices does not match the element type.