skshapes.triangle_mesh.geometry
Geometric properties of a triangular mesh.
This module provides functions to compute geometric properties of a triangle mesh such as triangle areas, edge lengths, dihedral angles, etc.
In addition, it is possible to compute these properties for a set of triangle meshes at the same time, if they have the same topology. This is useful when we need to compute the same property along a sequence of deformation of a triangle mesh.
All the function in this module are implemented in PyTorch. They take the points and triangles of the mesh as input and return a tensor with the computed property.
Arguments points can be either a tensor of shape: - (n_points, dim) for a single mesh - (n_points, n_poses, dim) for a sequence of poses of the same mesh
Functions
|
Cotan weights of a triangular mesh |
|
Dihedral angles of the edges of a triangular mesh. |
|
Centers of the edges of a triangular mesh. |
|
Lengths of the edges of a triangular mesh. |
|
Areas of the triangles of a triangular mesh. |
|
Centers of the triangles of a triangular mesh. |
|
Triangle normals of a triangular mesh. |