Compute neighborhood of the current vertex (=target vertex). The computation follows the mesh edges while there are still vertices which fullfil the dotproduct distance threshold.
extend_neighbors(
spherical_surface,
targetvidx,
currentvidx,
min_dotp_thresh,
ref_visited,
ref_neighbors,
ref_neighbor_dpdists
)
integer, invisible. Either 0L
or 1L
. Used in the recursion only, ignore. The return values of interest are in the 3 ref_*
parameters.
an fs.surface instance representing the spherical version (lh.sphere
or rh.sphere
of the subject).
positive integer, initial target vertex. The vertex for which to compute the neighborhood.
positive integer, initial current vertex. Pass identical value as in targetvidx, this is changed later in the recursion.
double, the minimal dotproduct distance threshold to use. Only vertices along the structural mesh neighborhood with values greater this will be included in the neighborhood. Yes, greater.
pass-by-reference (via RefClasses) integer vector of length num_mesh_vertices
: whether the respective vertex has been visited already.
pass-by-reference (via RefClasses) integer vector of length num_mesh_vertices
: whether the respective vertex is part of the current neighborhood.
pass-by-reference (via RefClasses) double vector of length num_mesh_vertices
: the dotproduct distance to the respective vertex (if it is part of the neighborhood).