commit 299034f985ddce6f83ad93c17aed3235884538b8
parent 4089a3c30c2eb68b0e7771196ebe50aa2b014574
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 28 Jul 2022 16:04:42 +0200
Minor fix of assertions
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/atrstm_setup_octrees.c b/src/atrstm_setup_octrees.c
@@ -200,8 +200,8 @@ voxelize_partition
ivxl_upp[1] = (uint32_t)ceil((poly_upp[1] - part_low[1]) / vxsz[1]);
ivxl_upp[2] = (uint32_t)ceil((poly_upp[2] - part_low[2]) / vxsz[2]);
ASSERT(ivxl_upp[0] <= PARTITION_DEFINITION);
- ASSERT(ivxl_upp[0] <= PARTITION_DEFINITION);
- ASSERT(ivxl_upp[0] <= PARTITION_DEFINITION);
+ ASSERT(ivxl_upp[1] <= PARTITION_DEFINITION);
+ ASSERT(ivxl_upp[2] <= PARTITION_DEFINITION);
/* Iterate over the partition voxels intersected by the primitive AABB */
FOR_EACH(ivxl[2], ivxl_low[2], ivxl_upp[2]) {