trimesh_descent_numpy

compas.geometry.trimesh_descent_numpy(M)[source]

Compute the descent directions of a triangular mesh as the gradient of the vertex heights.

Parameters:
Mtuple[vertices, faces]

The vertices and faces of the mesh.

Returns:
list[list[float]]]

The descent directions.