star-mesh

Define and load a binary data format for meshes
git clone git://git.meso-star.fr/star-mesh.git
Log | Files | Refs | README | LICENSE

commit c04af09692f2647ea97f4b332b0fd9bab545ce86
parent b69801a6e5095f1dbf1cfc1043a058785c43e885
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  6 Jul 2022 11:31:11 +0200

Minor update of the load test

Diffstat:
Msrc/test_smsh_load.c | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/test_smsh_load.c b/src/test_smsh_load.c @@ -238,13 +238,17 @@ main(int argc, char** argv) struct smsh* smsh = NULL; (void)argc, (void)argv; + args.verbose = 1; CHK(smsh_create(&args, &smsh) == RES_OK); - test_load_mesh(smsh, 3, 4); /* Tetrahedra */ - test_load_mesh(smsh, 3, 3); /* Triangles 3D */ - test_load_mesh(smsh, 2, 3); /* Triangles 2D */ - test_load_fail(smsh); - test_load_files(smsh, argc, argv); + if(argc > 1) { + test_load_files(smsh, argc, argv); + } else { + test_load_mesh(smsh, 3, 4); /* Tetrahedra */ + test_load_mesh(smsh, 3, 3); /* Triangles 3D */ + test_load_mesh(smsh, 2, 3); /* Triangles 2D */ + test_load_fail(smsh); + } CHK(smsh_ref_put(smsh) == RES_OK); CHK(mem_allocated_size() == 0);