Robuta

https://www.mathworks.com/help/matlab/ref/triangulation.pointlocation.html pointLocation - Triangle or tetrahedron enclosing point - MATLAB This MATLAB function returns the IDs of the triangles or tetrahedra enclosing the query points in P. triangletetrahedronpointmatlab