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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.