skshapes.triangle_mesh.geometry.triangle_areas
- skshapes.triangle_mesh.geometry.triangle_areas(*, points, triangles)
Areas of the triangles of a triangular mesh.
- Parameters:
points (
Float32[Tensor, '_ 2']|Float32[Tensor, '_ 3']|Float32[Tensor, '_ _ 2']|Float32[Tensor, '_ _ 3']) – Points or sequence of points with shape (n_points, n_poses, dim).triangles (
Int64[Tensor, '_ 3']) – Triangles of the mesh.
- Return type:
Float32[Tensor, '_']|Float32[Tensor, '_ _']- Returns:
The areas of the triangles with shape (n_triangles,) for a single mesh or (n_triangles, n_poses) for a sequence of meshes.