def distance_p2m(points, mesh):
    ' Compute minimal distances of each point in points to mesh.\n\n    Args:\n        points (numpy array): points array\n        mesh (trimesh): mesh\n\n    '
    (_, dist, _) = trimesh.proximity.closest_point(mesh, points)
    return dist
Compute minimal distances of each point in points to mesh.

Args:
    points (numpy array): points array
    mesh (trimesh): mesh
def distance_p2m(points, mesh):
    ' Compute minimal distances of each point in points to mesh.\n\n    Args:\n        points (numpy array): points array\n        mesh (trimesh): mesh\n\n    '
    (_, dist, _) = trimesh.proximity.closest_point(mesh, points)
    return dist