This code calculates the distance from one or many vertices to the surface of a 3D object identified by a mesh. The mesh needs to contain a list of vertices and a triangulation of the vertices given by a list of faces.
A distance per vertex and an average normalized distance for all test vertices is returned.
Christopher (2021). distanceVertex2Mesh(mesh, vertex) (https://www.mathworks.com/matlabcentral/fileexchange/50269-distancevertex2mesh-mesh-vertex), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!