star-stl

Load STereo Lithography (StL) file format
git clone git://git.meso-star.fr/star-stl.git
Log | Files | Refs | README | LICENSE

commit 94a5f86c7faa1d82488f2dad7269651ebd299d94
parent 36d7cbbb85a8d8d98e25398f054d90d8d8759470
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 11 Apr 2025 16:42:40 +0200

Modify the output format of the sstl utility

Put the file read as the last argument, as the wc command does.

Diffstat:
Msrc/sstl_main.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/sstl_main.c b/src/sstl_main.c @@ -117,7 +117,7 @@ read_type_to_cstr(const enum sstl_read_type type) { const char* cstr = NULL; switch(type) { - case SSTL_ASCII: cstr = "ASCII"; break; + case SSTL_ASCII: cstr = "ascii"; break; case SSTL_BINARY: cstr = "binary"; break; default: FATAL("Unreachable code"); break; } @@ -131,12 +131,12 @@ print_info(const struct cmd* cmd) ASSERT(cmd); SSTL(get_desc(cmd->sstl, &desc)); - printf("%s\t%s\t%s\t%lu\t%lu\n", - desc.filename, + printf("%s\t%s\t%lu\t%lu\t%s\n", read_type_to_cstr(desc.read_type), - desc.solid_name ? desc.solid_name : "NULL", + desc.solid_name ? desc.solid_name : "null", (unsigned long)desc.triangles_count, - (unsigned long)desc.vertices_count); + (unsigned long)desc.vertices_count, + desc.filename); } static INLINE res_T