vdsNode* vdsClusterNodes (int nnodes, vdsNode **nodes, vdsVec3 coord, vdsVec3 normal, vdsByte3 color)

Cluster a set of nodes under a single new node

Documentation

Cluster a set of nodes under a single new node. Attaches the given list of nodes to a new parent node, with a representative vertex at the specified coordinates.
Returns:
A pointer to the newly created parent node. NOTE: This pointer is only valid until the vdsEndVertexTree() call.
Parameters:
nnodes - The number of nodes being merged
nodes - Nodes being merged (it is an error if any of these nodes already has a parent node)
coord - The coordinates of the new node's repvert
normal - The surface normal at the new node's repvert
color - The surface color at the new node's repvert

alphabetic index hierarchy of classes