commit f0ddd9826d9749b258628d58ea3a0f9ff9664812
parent d700be376e401025d16c5474f7c18569e2381cb9
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 30 Mar 2018 16:31:29 +0200
Fix geometry in a test
Cylinders spacing was too small
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test_senc_many_enclosures.c b/src/test_senc_many_enclosures.c
@@ -106,11 +106,11 @@ main(int argc, char** argv)
cyl_trg_count = (unsigned)ctx.data.nprimitives;
cyl_vrtx_count = (unsigned)ctx.data.nvertices;
FOR_EACH(i, 0, NB_CYL_1) {
- double center_x = (2 + NB_CYL_1) * (i - NB_CYL_1 / 2);
+ double center_x = 2 * (1 + NB_CYL_1) * (i - NB_CYL_1 / 2);
FOR_EACH(j, 0, NB_CYL_1) {
double misalignment = 0.01;
FOR_EACH(k, 0, NB_CYL_1) {
- double center_y = (2 + NB_CYL_1) * (j - NB_CYL_1 / 2);
+ double center_y = 2 * (1 + NB_CYL_1) * (j - NB_CYL_1 / 2);
m_in = (unsigned)k;
m_out = (unsigned)(k + 1);
ctx.ctx.scale = k + 1;