Function OpenVDS::GetLODSize

inline int OpenVDS::GetLODSize(int voxelMin, int voxelMax, int LOD, bool includePartialUpperVoxel = true)

Get the number of voxels at a particular LOD from a voxel range (ranges are exclusive).

Parameters:
  • voxelMin – The minimum voxel index of the range.

  • voxelMax – The maximum voxel index of the range (ranges are exclusive, so the range does not include voxelMax).

  • includePartialUpperVoxel – This controls the rounding. Usually you want the size of the range to be all voxels in the range, but when we are copying from multiple adjacent ranges we only want to round up for the last one.

  • LOD – The LOD level for which the size is requested.

Returns:

The number of voxels at the given LOD, at LOD 0 the result is voxelMax - voxelMin.