trimesh_lscm

compas.geometry.trimesh_lscm(M)[source]

Compute the least squares conformal map of a triangle mesh.

Parameters

M (tuple[sequence[[float, float, float] | Point], sequence[[int, int, int]]]) – A mesh represented by a list of vertices and a list of faces.

Returns

list[[int, int]] – The u, v parameters per vertex.

Examples

>>>