star-enclosures-3d

Extract enclosures from 3D geometry
git clone git://git.meso-star.fr/star-enclosures-3d.git
Log | Files | Refs | README | LICENSE

commit 040b3aca3d7d532fe0102b2eb1932e0d572f7e3a
parent 213df7ab43c41dfafb4ea7261f3fa655ebb079e1
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 28 Jan 2020 15:57:33 +0100

Fix tests

Diffstat:
Msrc/test_senc_utils2.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test_senc_utils2.h b/src/test_senc_utils2.h @@ -74,8 +74,8 @@ get_s3dut_position(const unsigned ivert, double pos[3], void* context) ASSERT(i < NB_CYL_X && j < NB_CYL_Y && k < NB_CYL_Z); ASSERT((unsigned)(i * NB_CYL_Y * NB_CYL_Z + j * NB_CYL_Z + k) * ctx->data.nvertices + s3dut_ivert == ivert); - center_x = 2 * (1 + NB_CYL_X) * (i - NB_CYL_X / 2); - center_y = 2 * (1 + NB_CYL_Y) * (j - NB_CYL_Y / 2); + center_x = 2 * (1 + NB_CYL_Z) * (i - NB_CYL_X / 2); + center_y = 2 * (1 + NB_CYL_Z) * (j - NB_CYL_Y / 2); /* Compute scale and offset from imbrication */ scale = k + 1; #ifdef MITIGATE_EMBREE_181