From c447ffeeea6419201cba3184fce6257587f1bf30 Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 28 Nov 2024 09:33:17 +0100 Subject: [PATCH] Fixed visibility calculation --- include/viennals/lsCalculateVisibilities.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/viennals/lsCalculateVisibilities.hpp b/include/viennals/lsCalculateVisibilities.hpp index da46ff65..a1872f12 100644 --- a/include/viennals/lsCalculateVisibilities.hpp +++ b/include/viennals/lsCalculateVisibilities.hpp @@ -135,9 +135,7 @@ template class CalculateVisibilities { hrleSparseIterator::DomainType> neighborIt(domain); neighborIt.goToIndices(nearestCell); - if (neighborIt.isDefined()) { - neighborValue = neighborIt.getValue(); - } + neighborValue = neighborIt.getValue(); // Update the minimum value encountered if (neighborValue < minLevelSetValue) {