SN = neighbors(TR, SI)
SN = neighbors(TR, SI) returns the simplex
neighbor information for the specified simplices
the simplex opposite
A simplex is a triangle/tetrahedron or higher-dimensional equivalent. A facet is an edge of a triangle or a face of a tetrahedron.
Load a 3-D triangulation and use
compute the neighbors of all tetrahedra.
load tetmesh trep = TriRep(tet, X) nbrs = neighbors(trep)
Query a 2-D triangulation created using
x = rand(10,1) y = rand(10,1) dt = DelaunayTri(x,y)
n1 = neighbors(dt, 1)