Default values for CHANNEL_ISOLEVEL should be 1.0 (i.e maximum distance)

This commit is contained in:
Marc Gilleron 2019-04-27 02:05:40 +01:00
parent c86a5c53e1
commit 10c2e69a0c
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include <string.h>
VoxelBuffer::VoxelBuffer() {
_channels[CHANNEL_ISOLEVEL].defval = 1.0;
}
VoxelBuffer::~VoxelBuffer() {

View File

@ -13,6 +13,8 @@ VoxelMap::VoxelMap() :
for (unsigned int i = 0; i < VoxelBuffer::MAX_CHANNELS; ++i) {
_default_voxel[i] = 0;
}
_default_voxel[VoxelBuffer::CHANNEL_ISOLEVEL] = 1.0;
}
VoxelMap::~VoxelMap() {