skshapes.triangle_mesh.geometry.triangle_centers
- skshapes.triangle_mesh.geometry.triangle_centers(*, points, triangles)
Centers 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 centers of the triangles with shape (n_triangles, dim) for a single mesh or (n_triangles, n_poses, dim) for a sequence of meshes.