ID = pointLocation(TR,P)
returns the IDs of the triangles or tetrahedra enclosing the query points in
P. Each row in the matrix P contains the
coordinates of a query point.
ID = pointLocation(TR,x,y)
specifies the x-coordinates and y-coordinates
of 2-D query points as separate column vectors.
ID = pointLocation(TR,x,y,z)
specifies the x-coordinates, y-coordinates,
and z-coordinates of 3-D query points as separate column
vectors.
[ID,B] =
pointLocation(___)
also returns the barycentric coordinates of each query point with respect to its
enclosing triangle or tetrahedron for any of the previous syntaxes.
Query points, specified as a 2-column matrix (2-D) or a 3-column matrix
(3-D). P contains the x-coordinates,
y-coordinates, and (possibly)
z-coordinates of the query points.
Data Types: double
x-coordinates of query points, specified as a column
vector.
Data Types: double
y-coordinates of query points, specified as a column
vector.
Data Types: double
z-coordinates of query points, specified as a column
vector.
Triangle or tetrahedra IDs of the triangles or tetrahedra enclosing the
query points, returned as a column vector. A triangle or tetrahedron ID is
the row number of the corresponding triangle or tetrahedron in the
ConnectivityList property.
If a query point lies on the boundary of two or more triangles or
tetrahedra, then the largest ID is returned.
ID contains NaN values for points
that are not located in a triangle or tetrahedron of the
triangulation.
Data Types: double
Barycentric coordinates of each query point with respect to its enclosing
triangle or tetrahedron, returned as a 3-column matrix (2-D) or a 4-column
matrix (3-D).
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.