From 06dfe42db46491b357233281cc7f89b6d42c51ac Mon Sep 17 00:00:00 2001 From: Daniel Girardeau-Montaut Date: Sat, 31 Aug 2024 13:10:06 +0200 Subject: [PATCH] Glitch fix: incomplete fallback strategy in case of an invalid SF used to support subsampling modulation --- src/CloudSamplingTools.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CloudSamplingTools.cpp b/src/CloudSamplingTools.cpp index 2437329..4d0518d 100644 --- a/src/CloudSamplingTools.cpp +++ b/src/CloudSamplingTools.cpp @@ -298,6 +298,8 @@ ReferenceCloud* CloudSamplingTools::resampleCloudSpatially(GenericIndexedCloudPe { //all SF values are NAN?! modParamsEnabled = false; + unsigned char defaultLevel = octree->findBestLevelForAGivenNeighbourhoodSizeExtraction(minDistance); + bestOctreeLevel.push_back(defaultLevel); } else {