Make an indexData buffer for the creation of a WL.Mesh instance. Automatically decides the most memory-efficient TypedArray for the buffer.
A tuple containing the indexData buffer, and the indexType argument to be passed to the WL.Mesh constructor.
The ammount of indices in the indexData buffer.
The amount of vertices that will be indexed.
Generated using TypeDoc
Make an indexData buffer for the creation of a WL.Mesh instance. Automatically decides the most memory-efficient TypedArray for the buffer.
Returns
A tuple containing the indexData buffer, and the indexType argument to be passed to the WL.Mesh constructor.