commit 319cd70f013dfc74bbfeb1c1ec2f5d30a17b1e58
parent 319a5ef9622d6c11e4ab87021820e6adbc596411
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 26 May 2021 12:01:24 +0200
Fix the building of the octree with uniform radcoefs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/atrstm_setup_octrees.c b/src/atrstm_setup_octrees.c
@@ -439,7 +439,7 @@ voxel_get(const size_t xyz[3], const uint64_t mcode, void* dst, void* context)
const float k_max = vox_get(vox, cpnt, radcoef, ATRSTM_SVX_OP_MAX);
ASSERT(ATRSTM_SVX_OPS_COUNT__ == 2);
- if(k_min < k_max) {
+ if(k_min <= k_max) {
vox_set(dst, cpnt, radcoef, ATRSTM_SVX_OP_MIN, k_min);
vox_set(dst, cpnt, radcoef, ATRSTM_SVX_OP_MAX, k_max);
} else {