trimesh_descent

compas.datastructures.trimesh_descent(trimesh)[source]

Compute the gradient per face of the heightfield of the vertices of the mesh.

Parameters

trimesh (Mesh) – The triangle mesh.

Returns

list[list[float]] – A list of vectors with one vector per face.