wall.facet.pair

Syntax

fr = wall.facet.pair(f,i)

Get a neighboring facet. Neighboring facets are those sharing a {vertex in 2D; edge in 3D}. A null pointer can be returned if no neighbor exists.

Returns:

fr - facet pointer

Arguments:

f - facet pointer

i - Edge index with {1 ≤ i ≤ 2 in 2D; 1 ≤ i ≤ 3 in 3D}. In 3D, edge 1 includes vertices 1 and 2, edge 2 includes vertices 2 and 3, and edge 3 includes vertices 3 and 1.