24 #ifndef __PolyVox_Block_H__
25 #define __PolyVox_Block_H__
35 template <
typename VoxelType>
38 template <
typename LengthType>
46 static uint32_t maxRunlength(
void) {
return (std::numeric_limits<LengthType>::max)();}
50 Block(uint16_t uSideLength = 0);
53 VoxelType
getVoxelAt(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos)
const;
56 void setVoxelAt(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos, VoxelType tValue);
59 void fill(VoxelType tValue);