module Region { type Voxels = Array; type Coords = [number, number, number] type Index = number type IndexToCoords = (index:Index)=> Coords type CoordsToIndex = (x:number, y:number, z:number)=> Index type BufferParts = { pos:Array, ind:Array } type BufferBuilder = (voxels:Voxels)=>BufferParts }