m3sh.traits.
vertex_angle#
- vertex_angle(vertex)#
Total angle around a vertex.
Compute \(\sum_{i=1}^k \alpha_i\) where \(\alpha_i\) denote the angles incident to vertex.
- Parameters:
- vertexVertex
Vertex of a triangle mesh.
- Returns:
- float
Sum of incident angles in radians.
See also
Notes
The value \(2\pi - \sum_{i=1}^k \alpha_i\) is called angle defect or discrete Gaussian curvature. A point-wise estimate of Gaussian curvature is often defined as the quotient
>>> K = (2.0 * pi - vertex_angle(v)) / vertex_area(v)