int [] neighbours(<geometry>geometry, int ptnum)
<geometry>
When running in the context of a node (such as a wrangle SOP), this argument can be an integer representing the input number (starting at 0) to read the geometry from.
Alternatively, the argument can be a string specifying a geometry file (for example, a .bgeo
) to read from. When running inside Houdini, this can be an op:/path/to/sop
reference.
This is a simpler, arraybased replacement for the combination of
neighbourcount and neighbour. The array contains the numbers
of all points that share an edge with ptnum
. The point numbers are in no particular order.
Examples ¶
This is roughly equivalent to the following code:
int [] neighbours(int opinput, int ptnum) { int i, n; int result[]; n = neighbourcount(input, ptnum); resize(result, n); for (i = 0; i < n; i++) result[i] = neighbour(input, ptnum, i); }
See also  
point 

proximity 