skshapes.triangle_mesh.geometry.edge_lengths
- skshapes.triangle_mesh.geometry.edge_lengths(*, points, triangles, edge_topology=None)
Lengths of the edges 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.edge_topology (
EdgeTopology|None) – Edge topology of the mesh. If not provided, it will be computed from the triangles.
- Return type:
Float32[Tensor, '_']|Float32[Tensor, '_ _']- Returns:
The lengths of the edges with shape (n_edges,) for a single mesh or (n_edges, n_poses) for a sequence of meshes.