trimesh_gaussian_curvature
- compas.datastructures.trimesh_gaussian_curvature(mesh)[source]
Compute the gaussian curvature at the vertices of a triangle mesh using the angular deficit.
- Parameters:
- mesh
compas.datastructures.Mesh
The triangle mesh data structure.
- mesh
- Returns:
- list[float]
Per vertex curvature values.
Warning
This function will not check if the provided mesh is actually a triangle mesh. It will just treat it as such…
Notes
The angular deficit at a vertex is defined as the difference between a full circle angle (
) and the sum of the angles in the adjacent trianlges.where
are the triangles incident on vertex and is the angle at vertex in triangle .