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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.