volume_form_intrinsic#
- iskra.geometry.volume.volume_form_intrinsic(edge_lengths: Tensor, face_to_edge: Tensor) Tensor[SOURCE]#
Computes the generalized volume of simplices from edge lengths alone.
This is a convenience function that checks the number of corners in the simplex and is returns the identity in case of edges, and calls either
triangle_areas, ortetrahedron_volumesfor triangles and tetrahedra resp.- 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, [S, 1 | 3 | 6]]) – Indexes intoedge_lengths. Usually obtained using get_subfaces.
- Returns:
(
Tensor[Float, [S]]) – Simplices generlized volumes.