mymesh.implicit.mesh2sdf#

mymesh.implicit.mesh2sdf(M, points, method='nodes+centroids')[source]#

Generates a signed distance field for a mesh.

Parameters:
  • M (mesh.mesh) – Mesh object that will be used to define the distance field.

  • points (array_like) – Points at which the signed distance field will be evaluated.

  • method (str) – Method to be used nodes nodes+centroids centroids

Returns:

NodeVals – List of signed distance values evaluated at each node in the voxel grid.

Return type:

list