Mesh:getDrawRange

Edit

Returns the range of vertices drawn by the Mesh. If different sets of mesh data are stored in a single Mesh object, the draw range can be used to select different sets of vertices to render.



Arguments

None

Returns

NameTypeDescription
startnumber The index of the first vertex that will be drawn (or the first index, if the Mesh has vertex indices).
countnumber The number of vertices that will be drawn (or indices, if the Mesh has vertex indices).
offsetnumber When the Mesh has vertex indices, an offset that will be added to the index values before fetching the corresponding vertex. This is ignored if the Mesh does not have vertex indices.

This function returns nothing if no draw range is set.

Arguments

None

Returns

Nothing

See also