int vertexnext(<geometry>geometry, int linearvertex)
<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.
linearvertex
The linear index of a vertex. If you have a point number and point vertex number, you can use vertexindex to convert them to a linear index.
Returns
The linear index of the next vertex sharing the same point with the given vertex,
or -1
if the vertex has no later shared vertices.
(To go in the other direction, use vertexprev.)
Examples ¶
int vtx; // Get the next vertex of vertex 3 vtx = vertexnext("defgeo.bgeo", 3);
See also | |
vertex |
|