Make adjacency matrix between two sets of vertices on the same mesh.
vert_adjacency(faces, v1, v2 = NULL)
Adjacency matrix
An \(F \times 3\) matrix, where each row contains the vertex indices for a given triangular face in the mesh. \(F\) is the number of faces in the mesh.
The first and second set of vertices. These are logical vectors
the same length as vertices
indicating the vertices in each set.
If v2
is NULL
(default), set v2
to v1
. Can
alternatively be a vector if integers corresponding to vertex indices.