public static void SetBatchOctree(this BatchOctreesStreamer batchOctreesStreamer, Int3 absoluteOctreeId, VoxelandData.OctNode root) { var numOctreesPerBatch = batchOctreesStreamer.numOctreesPerBatch; var batchId = Int3.FloorDiv(absoluteOctreeId, numOctreesPerBatch); var batch = batchOctreesStreamer.GetBatch(batchId); var octreeId = absoluteOctreeId - (batchId * numOctreesPerBatch); Logger.Debug($"numOctreesPerBatch = {numOctreesPerBatch}, batchId = {batchId}, octreeId = {octreeId}, absoluteOctreeId = {absoluteOctreeId}"); batch.SetOctree(octreeId, root); }