FUNCTION REFERENCE
pointLocation
Find the triangle or tetrahedron containing each query point.
Find the triangle or tetrahedron containing each query point.
Syntax
[ID, B] = pointLocation(DT, Q)Each row of Q contains a 2-D or 3-D query point. ID indexes the rows of DT.ConnectivityList. B contains the barycentric weights in that row's vertex order. Outside points return NaN in both outputs.
Example
DT = delaunayTriangulation([0 0; 1 0; 0 1]); [id, b] = pointLocation(DT, [0.25 0.25])Example
DT = delaunayTriangulation([0 0 0; 1 0 0; 0 1 0; 0 0 1]); [id, b] = pointLocation(DT, [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.