m3sh.traits.

vertex_areas#

vertex_areas(mesh, weights=None)#

Mixed vertex areas.

Parameters:
meshMesh

A triangle mesh instance.

weightsdict[Halfedge, float], optional

A dictionary of precomputed cotangent weights.

Returns:
areandarray

An array of length n, where n denotes the number of vertices of mesh. Deleted vertices are assigned nan as area while isolated vertices have zero area.

See also

vertex_area