Triangulation in 2D or 3D
Use triangulation
to create an inmemory representation
of any 2D or 3D triangulation data that is in matrix format, such
as the matrix output from the delaunay
function
or other software tools. When your data is represented using triangulation
,
you can perform topological and geometric queries, which you can use
to develop geometric algorithms. For example, you can find the triangles
or tetrahedra attached to a vertex, those that share an edge, their
circumcenters, and other features.
creates
a 2D or 3D triangulation representation using the triangulation
connectivity list, TR
= triangulation(T
,P
)T
, and the points in matrix P
.
creates
a 2D triangulation representation with the point coordinates specified
as column vectors, TR
= triangulation(T
,x
,y
)x
and y
.
creates
a 3D triangulation representation with the point coordinates specified
as column vectors, TR
= triangulation(T
,x
,y
,z
)x
, y
, and z
.

Triangulation connectivity list, specified as an 

Points, specified as a matrix whose columns are the 

xcoordinates vector, specified as a column vector containing the xcoordinates of the triangulation points. 

ycoordinates vector, specified as a column vector containing the ycoordinates of the triangulation points. 

zcoordinates vector, specified as a column vector containing the zcoordinates of the triangulation points. 

Points in the triangulation, represented as a matrix containing the following information:


Triangulation connectivity list, represented as a matrix. This matrix contains the following information:

barycentricToCartesian  Converts point coordinates from barycentric to Cartesian 
cartesianToBarycentric  Converts point coordinates from Cartesian to barycentric 
circumcenter  Circumcenter of triangle or tetrahedron 
edgeAttachments  Triangles or tetrahedra attached to specified edge 
edges  Triangulation edges 
faceNormal  Triangulation face normal 
featureEdges  Triangulation sharp edges 
freeBoundary  Triangulation facets referenced by only one triangle or tetrahedron 
incenter  Incenter of triangle or tetrahedron 
isConnected  Test if two vertices are connected by edge 
nearestNeighbor  Vertex closest to specified location 
neighbors  Neighbors to specified triangle or tetrahedron 
pointLocation  Triangle or tetrahedron containing specified point 
size  Size of triangulation connectivity list 
vertexAttachments  Triangles or tetrahedra attached to specified vertex 
vertexNormal  Triangulation vertex normal 
Value. To learn how value classes affect copy operations, see Copying Objects in the MATLAB^{®} documentation.