commit 27846f944494b5fff41bd2783896bb4e5038c6cd
parent 0b119828ce9580130eabcd590c8e2fd3f5e44328
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Wed, 6 Mar 2024 12:14:53 +0100
Improve some messages
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/scad.c b/src/scad.c
@@ -524,8 +524,7 @@ scad_stl_sort_orientation
if(tcount != tcount_in) {
ASSERT(tcount_in > tcount);
log_warning(get_device(),
- "Triangles duplicates were found when sorting out normals (%u / %u) "
- "in set '%s'.\n",
+ "Triangles duplicates found when sorting out normals (%u / %u) in set '%s'.\n",
tcount_in - tcount, tcount_in, set_name);
}
if(orientation == Scad_force_normals_outward)
@@ -543,7 +542,7 @@ scad_stl_sort_orientation
ERR(senc3d_scene_get_overlapping_triangles_count(senc3d_scn, &ocount));
if(ocount) {
logger_print(logger, LOG_ERROR,
- "Overlapping triangles where found when sorting out normals (%u / %u) "
+ "Overlapping triangles found when sorting out normals (%u / %u) "
"in set '%s'.\n",
tcount_in - ocount, tcount_in, set_name);
res = RES_BAD_ARG;
@@ -581,8 +580,10 @@ scad_stl_sort_orientation
if(header.primitives_count != header.unique_primitives_count) {
log_error(get_device(),
"Triangle set '%s' define an invalid closed volume "
- "(both sides of a triangle are in).\n",
- set_name);
+ "(both sides %u / %u triangles are in).\n",
+ set_name,
+ header.primitives_count - header.unique_primitives_count,
+ header.unique_primitives_count);
res = RES_BAD_ARG;
goto error;
}