extend_neighbors | R Documentation |
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
)
spherical_surface |
an fs.surface instance representing the spherical version ( |
targetvidx |
positive integer, initial target vertex. The vertex for which to compute the neighborhood. |
currentvidx |
positive integer, initial current vertex. Pass identical value as in targetvidx, this is changed later in the recursion. |
min_dotp_thresh |
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. |
ref_visited |
pass-by-reference (via RefClasses) integer vector of length |
ref_neighbors |
pass-by-reference (via RefClasses) integer vector of length |
ref_neighbor_dpdists |
pass-by-reference (via RefClasses) double vector of length |
integer, invisible. Either 0L
or 1L
. Used in the recursion only, ignore. The return values of interest are in the 3 ref_*
parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.