vert_adjacency: Vertex Adjacency Matrix

View source: R/utils_surf.R

vert_adjacencyR Documentation

Vertex Adjacency Matrix

Description

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

Usage

vert_adjacency(faces, v1, v2 = NULL)

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.

Value

Adjacency matrix


mandymejia/ciftiTools documentation built on Feb. 28, 2024, 11:20 a.m.