From 10c2e69a0cb0a1ea6b8da663656c4662e643d303 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sat, 27 Apr 2019 02:05:40 +0100 Subject: [PATCH] Default values for CHANNEL_ISOLEVEL should be 1.0 (i.e maximum distance) --- voxel_buffer.cpp | 1 + voxel_map.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/voxel_buffer.cpp b/voxel_buffer.cpp index 2e991a0..aceb6c4 100644 --- a/voxel_buffer.cpp +++ b/voxel_buffer.cpp @@ -4,6 +4,7 @@ #include VoxelBuffer::VoxelBuffer() { + _channels[CHANNEL_ISOLEVEL].defval = 1.0; } VoxelBuffer::~VoxelBuffer() { diff --git a/voxel_map.cpp b/voxel_map.cpp index c523b79..bcc45b6 100644 --- a/voxel_map.cpp +++ b/voxel_map.cpp @@ -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() {