Home Reference VEX VEX functions 

getneighbour vex function

Contexts: pop , sop

Tags: geo

Returns the point index of the neighbour of the point.

  1. int getneighbour(int ptnum, int neighbournum, int inputnum)

Returns the point index of the neighbour of the point. The order is undefined, but will be consistent for consistent geometry. Returns -1 if the neighbournum is out of range for that point, or the point is out of range for that input, or the input doesn’t exist.