Returns a subcomponent of a node of the ModelData.

Each node is composed of several pieces of geometry. These are called the components of a node. A component is a range of vertices and a material. To render a node, the appropriate material is applied and the component's range of vertices is rendered with that material.

start, count, material = ModelData:getNodeComponent(index, subcomponent)


indexnumberThe index of the node to get the number of components of (1-indexed).
subcomponentnumberThe index of the subcomponent to retrieve.


startnumberThe index of the first vertex in the subcomponent.
countnumberThe number of vertices in the subcomponent.
materialnumberThe index of the subcomponent's material.


An error will be thrown if an invalid node index or subcomponent index is supplied.

See also