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 ce046f006c072e3cbc1ebd75e9926e973d160ebe
parent e71b16b2b84b2c32ba52d36d3c88bfc6f9704e9b
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 17 Apr 2018 15:10:36 +0200

Replace assert by CGK in test code

To allow error detection in Release

Diffstat:
Msrc/test_senc_sample_enclosure.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test_senc_sample_enclosure.c b/src/test_senc_sample_enclosure.c @@ -104,19 +104,19 @@ main(int argc, char** argv) if(eq_eps(attrib.value[n], 0, FLT_EPSILON) || eq_eps(attrib.value[n], 1, FLT_EPSILON)) c++; - ASSERT(c == 1); + CHK(c == 1); S3D(primitive_get_attrib(&prim, S3D_GEOMETRY_NORMAL, st, &attrib)); c = 0; FOR_EACH(n, 0, 3) if(eq_eps(attrib.value[n], -1, FLT_EPSILON) || eq_eps(attrib.value[n], 1, FLT_EPSILON)) c++; - ASSERT(c == 1); + CHK(c == 1); c = 0; FOR_EACH(n, 0, 3) if(eq_eps(attrib.value[n], 0, FLT_EPSILON)) c++; - ASSERT(c == 2); + CHK(c == 2); } SENC(enclosure_ref_put(enclosure));