Learn R Programming

ciftiTools (version 0.17.4)

vert_adjacency: Vertex Adjacency Matrix

Description

Make adjacency matrix between two sets of vertices on the same mesh.

Usage

vert_adjacency(faces, v1, v2 = NULL)

Value

Adjacency matrix

Arguments

faces

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.

v1, v2

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.