Skip to main content

lstptr

Function lstptr 

Source
pub unsafe extern "C" fn lstptr(
    lpl: *const c_int,
    nb: *const c_int,
    list: *const c_int,
    lptr: *const c_int,
) -> c_int
Expand description

Returns the index of nb in the adjacency list.

This function returns the index (list pointer) of nb in the adjacency list for n0, where lpl = lend[n0]. This function is identical to the similarly named function in TRIPACK.

§Arguments

  • lpl - Input. Is lend[n0]
  • nb - Input. The index of the node whose pointer is to be returned. nb must be connected to n0.
  • list[6 * (n - 2)], lptr[6 * (n - 2)] - Input. The data structure defining the triangulation, created by trmesh.

§Returns

Pointer lstptr such that list[lstptr] = nb or list[lstptr] = -nb, unless nb is not a neighbor of n0, in which case lstptr = lpl.