shiftIndices
fun shiftIndices(positions: Int = 0, textureCoords: Int = 0, colors: Int = 0, normals: Int = 0, tangents: Int = 0, bitangents: Int = 0): IndexedPolygon(source)
Shifts the indices for position, texture coordinates, colors, normals, tangents, and bitangents by the specified amounts and returns a new IndexedPolygon with the updated indices.
Return
A new IndexedPolygon with indices shifted by the provided values.
Parameters
positions
The amount to shift the position indices. Defaults to 0.
textureCoords
The amount to shift the texture coordinate indices. Defaults to 0.
colors
The amount to shift the color indices. Defaults to 0.
normals
The amount to shift the normal indices. Defaults to 0.
tangents
The amount to shift the tangent indices. Defaults to 0.
bitangents
The amount to shift the bitangent indices. Defaults to 0.