distanceVertex2Mesh​(mesh, vertex)

Calculate the distance between vertices and a mesh
455 Downloads
Updated 26 Mar 2015

View License

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.

Cite As

Christopher (2024). distanceVertex2Mesh(mesh, vertex) (https://www.mathworks.com/matlabcentral/fileexchange/50269-distancevertex2mesh-mesh-vertex), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0