(Not recommended) Test if vertices are joined by edge
TF = isEdge(TR, V1, V2)
TF = isEdge(TR, EDGE)
TF = isEdge(TR, V1, V2) returns an array
of 1/0 (true/false) flags, where each entry
V2(i) is an edge
in the triangulation.
column vectors representing the indices of the vertices in the mesh,
that is, indices into the vertex coordinate arrays.
TF = isEdge(TR, EDGE) specifies the edge
start and end indices in matrix format.
|Column vectors of mesh vertices.|
| Matrix of size |
|Array of 1/0 (true/false) flags, where each entry |
Load a 2-D triangulation and use
query the presence of an edge between pairs of points.
load trimesh2d trep = TriRep(tri, x,y);
Test if vertices 3 and 117 are connected by an edge
isEdge(trep, 3, 117)
Test if vertices 3 and 164 are connected by an edge
isEdge(trep, 3, 164)
Direct query of a 3-D Delaunay triangulation created using
X = rand(10,3) dt = DelaunayTri(X)
Test if vertices 2 and 7 are connected by an edge
isEdge(dt, 2, 7);