Example of usage to get signed distances from points of mesh to another reference mesh
- Note
- Please note that unlike findSignedDistance, this function return distances for each valid points
- Python
from meshlib import mrmeshpy
print("Distance between reference mesh and the closest point of target mesh is " + str(min(vert_distances)))
print("Distance between reference mesh and the farthest point of target mesh is " + str(max(vert_distances)))
VertScalars findSignedDistances(Mesh refMesh, VertCoords testPoints, VertBitSet validTestPoints='{}', MeshProjectionParameters params='{}', IPointsToMeshProjector projector='{}')
Mesh loadMesh(os.PathLike|str|bytes file, MeshLoadSettings settings='{}')