Choose your operating system:
Windows
macOS
Linux
TDynamicVector< int > IndexList
List of indices for a given Box. There is no marker/sentinel between boxes, you have to get the starting index from BoxToIndex[]
There are three kinds of records:
if i < TrianglesEnd, then the list is a number of Triangles, stored as [N t1 t2 t3 ... tN]
if i > TrianglesEnd and IndexList[i] < 0, this is a single-child internal Box, with index (-IndexList[i])-1 (shift-by-one in case actual value is 0!)
if i > TrianglesEnd and IndexList[i] > 0, this is a two-child internal Box, with indices IndexList[i]-1 and IndexList[i+1]-1