trimesh_gradient_numpy

compas.geometry.trimesh_gradient_numpy(M, rtype='array')[source]

Construct the gradient operator of a trianglular mesh.

Parameters:
Varray

Vertex coordinates of the mesh.

Farray

Face vertex indices of the mesh.

rtype{‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’}

Format of the result.

Returns:
array-like

Depending on rtype return type.

Notes

The gradient operator is fully determined by the connectivity of the mesh and the coordinate difference vectors associated with the edges