File Exchange

image thumbnail

distanceVertex2Mesh​(mesh, vertex)

version (5.82 KB) by Christopher
Calculate the distance between vertices and a mesh


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 (2021). distanceVertex2Mesh(mesh, vertex) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

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!