getneighbourcount VEX function

Returns the number of points that are connected to the specified point.

Contexts: pop, sop

  1. int getneighbourcount(int ptnum, int inputnum)

Returns the number of points that are connected to the specified point. A point is connected if it is adjacent in some polygon, or is one of the four surrounding points in a grid or NURBs surface. Returns 0 if there is no input, or if the point number is out of range.