tetrahedron_volumes_intrinsic#
- iskra.geometry.volume.tetrahedron_volumes_intrinsic(edge_lengths: Tensor, face_to_edge: Tensor) Tensor[SOURCE]#
Computes the volume of tetrahedra from edge lengths alone.
Implements [https://en.wikipedia.org/wiki/Heron%27s_formula#Volume_of_a_tetrahedron](https://en.wikipedia.org/wiki/Heron%27s_formula#Volume_of_a_tetrahedron).
- Parameters:
edge_lengths (
Tensor[Float, [Edges]]) – Tensor of edge lengths where Edges is the number of edges in the mesh.face_to_edge (
Tensor[Float, [Tets, 6]]) – Indexes intoedge_lengths. Usually obtained using get_subfaces.
- Returns:
(
Tensor[Float, [Tets]]) – Tetrahedra volumes.