Added utility function for people who already have data in linear order, to convert it to Morton order.

This commit is contained in:
David Williams
2015-04-05 10:14:25 +02:00
parent d521b08cf9
commit c887d1444f
2 changed files with 28 additions and 0 deletions

View File

@ -133,6 +133,8 @@ namespace PolyVox
void setVoxel(uint32_t uXPos, uint32_t uYPos, uint32_t uZPos, VoxelType tValue);
void setVoxel(const Vector3DUint16& v3dPos, VoxelType tValue);
void changeLinearOrderingToMorton(void);
private:
/// Private copy constructor to prevent accisdental copying
Chunk(const Chunk& /*rhs*/) {};