trimesh_harmonic

trimesh_harmonic(M)[source]

Compute the harmonic parametrisation of a triangle mesh within a fixed circular boundary.

Parameters:
Mtuple[list[list[float]], list[list[int]]]

A mesh represented by a tuple of (vertices, faces) where vertices are 3D points and faces are triangles

Returns:
list[list[float]]

The u, v parameters per vertex.

Notes

camelhead.off can be downloaded from https://raw.githubusercontent.com/libigl/libigl-tutorial-data/master/camelhead.off