FUNCTION REFERENCE
delaunayTriangulation.pointLocation
Find the triangle or tetrahedron containing each query point in a Delaunay triangulation.
Find the triangle or tetrahedron containing each query point in a Delaunay triangulation.
Syntax
ID = pointLocation(DT, Q)Syntax
[ID, B] = pointLocation(DT, Q)Syntax
[ID, B] = DT.pointLocation(Q)Locates each row of Q (N-by-2 in 2-D or N-by-3 in 3-D) in DT.ConnectivityList, returning simplex row indices ID and optional barycentric coordinates B in each simplex's vertex order; points outside the triangulation return NaN.
Example
DT = delaunayTriangulation([0 0; 1 0; 0 1]); [id, b] = DT.pointLocation([0.25 0.25])Example
DT = delaunayTriangulation([0 0 0; 1 0 0; 0 1 0; 0 0 1]); [id, b] = DT.pointLocation([0.25 0.25 0.25])These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.