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 b6e13fb7754787bbfce6ef220d4780c1e27b5e85
parent db74856f0956a8f7169c81131a4701848e53f7bf
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri,  8 Feb 2019 11:18:33 +0100

Fix a warning log output

Diffstat:
Msrc/senc_scene_analyze.c | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/senc_scene_analyze.c b/src/senc_scene_analyze.c @@ -880,8 +880,9 @@ collect_and_link_neighbours previous = darray_neighbour_cdata_get(neighbour_list) + i - 1; prev_id = previous->trg_id; log_err(scn->dev, - "%s: found 2 overlying triangles (%u & %u).\n", - FUNC_NAME, prev_id, crt_id); + "%s: found 2 overlying triangles (%lu & %lu).\n", FUNC_NAME, + (unsigned long)triangles_in[crt_id].global_id, + (unsigned long)triangles_in[prev_id].global_id); tmp_res = RES_BAD_OP; goto tmp_error; } @@ -907,8 +908,11 @@ collect_and_link_neighbours && p_crt_side->medium != p_ccw_side->medium) { log_warn(scn->dev, - "%s: found possible hole involving triangle %u.\n", - FUNC_NAME, crt_id); + "%s: found possible hole involving triangle %lu.\n" + " Edge: %g %g %g -- %g %g %g\n", + FUNC_NAME, (unsigned long)triangles_in[crt_id].global_id, + SPLIT3(vertices[v0].vec), + SPLIT3(vertices[v1].vec)); } } }