Function Kataglyphis::sliceMeshRange

Function Kataglyphis::sliceMeshRange#

Function Documentation#

MeshSlice Kataglyphis::sliceMeshRange(const MeshRange &range, const std::vector<Vertex> &vertices, const std::vector<unsigned int> &indices, const std::vector<unsigned int> &materialIndex)#

Slices the flat arrays for a single range. Shared by both loaders’ uploadParsed so the re-basing arithmetic lives in one place. A range that does not fit within the arrays (a malformed asset, or a slicer bug in the loader) yields an empty MeshSlice instead of reading past the arrays.