Skip to content

Commit

Permalink
Fixed visibility calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Nov 28, 2024
1 parent cc26206 commit c447ffe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/viennals/lsCalculateVisibilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ template <class NumericType, int D> class CalculateVisibilities {
hrleSparseIterator<typename Domain<NumericType, D>::DomainType>
neighborIt(domain);
neighborIt.goToIndices(nearestCell);
if (neighborIt.isDefined()) {
neighborValue = neighborIt.getValue();
}
neighborValue = neighborIt.getValue();

// Update the minimum value encountered
if (neighborValue < minLevelSetValue) {
Expand Down

0 comments on commit c447ffe

Please sign in to comment.