star-geometry-3d

Clean and decorate 3D geometries
git clone git://git.meso-star.fr/star-geometry-3d.git
Log | Files | Refs | README | LICENSE

commit 7e44907e49f67d6d7e0ec025ad464d85f4153eed
parent 8f2977153ef3491659a97220149210438c617a41
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 28 Jan 2020 15:18:55 +0100

Fix tests

Diffstat:
Msrc/test_sg3_many_enclosures.c | 4++--
Msrc/test_sg3_some_enclosures.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test_sg3_many_enclosures.c b/src/test_sg3_many_enclosures.c @@ -67,11 +67,11 @@ main(int argc, char** argv) cyl_vrtx_count = (unsigned)ctx.data.nvertices; OK(sg3_geometry_reserve(geom, NB_CYL * cyl_vrtx_count, NB_CYL * cyl_trg_count, 0)); FOR_EACH(i, 0, NB_CYL_X) { - double center_x = 2 * (1 + NB_CYL_X) * (i - NB_CYL_X / 2); + double center_x = 2 * (1 + NB_CYL_Z) * (i - NB_CYL_X / 2); FOR_EACH(j, 0, NB_CYL_Y) { double misalignment = 0; FOR_EACH(k, 0, NB_CYL_Z) { - double center_y = 2 * (1 + NB_CYL_Y) * (j - NB_CYL_Y / 2); + double center_y = 2 * (1 + NB_CYL_Z) * (j - NB_CYL_Y / 2); m_in = (unsigned)k; m_out = (unsigned)(k + 1); ctx.ctx.scale = k + 1; diff --git a/src/test_sg3_some_enclosures.c b/src/test_sg3_some_enclosures.c @@ -67,11 +67,11 @@ main(int argc, char** argv) cyl_vrtx_count = (unsigned)ctx.data.nvertices; OK(sg3_geometry_reserve(geom, NB_CYL * cyl_vrtx_count, NB_CYL * cyl_trg_count, 0)); FOR_EACH(i, 0, NB_CYL_X) { - double center_x = 2 * (1 + NB_CYL_X) * (i - NB_CYL_X / 2); + double center_x = 2 * (1 + NB_CYL_Z) * (i - NB_CYL_X / 2); FOR_EACH(j, 0, NB_CYL_Y) { double misalignment = 0; FOR_EACH(k, 0, NB_CYL_Z) { - double center_y = 2 * (1 + NB_CYL_Y) * (j - NB_CYL_Y / 2); + double center_y = 2 * (1 + NB_CYL_Z) * (j - NB_CYL_Y / 2); m_in = (unsigned)k; m_out = (unsigned)(k + 1); ctx.ctx.scale = k + 1;