MESHADJACENCYMATRIX Compute adjacency matrix of a mesh from set of faces. ADJMAT = meshAdjacencyMatrix(FACES) Returns a sparse NV-by-NV matrix (NV being the largest vertex index) containing vertex adjacency of the mesh represented by FACES. FACES is either a NF-by-3, a NF-by-4 index array, or a Nf-by-1 cell array. Example [v f] = createCube; adj = meshAdjacencyMatrix(f); See also meshes3d, triangulateFaces, smoothMesh
Package: matgeom