trimesh_geodistance_multiple
- trimesh_geodistance_multiple(M, sources, method='exact')[source]
Compute the geodesic distance from multiple source points.
Calculates the minimum geodesic distance from any of the source vertices to all other vertices in the mesh.
- Parameters:
- Mtuple[list[list[float]], list[list[int]]]
A mesh represented by a tuple of (vertices, faces) where vertices are 3D points and faces are triangles
- sourceslist[int]
The indices of the source vertices.
- methodstr, optional
The method to use for geodesic distance computation. Options: * ‘exact’: Use exact geodesic algorithm * ‘heat’: Use heat method (faster but approximate) Default is ‘exact’.
- Returns:
- list[float]
The minimum geodesic distances from any source to all vertices.
- Raises:
- NotImplementedError
If method is not one of {‘exact’, ‘heat’}.