schiff

Estimate the radiative properties of soft particless
git clone git://git.meso-star.com/schiff.git
Log | Files | Refs | README | LICENSE

commit f94df49a4928f28bc6ec4c765c720023d9149f24
parent f150280261dc47c522d81a4ec335c8e5fb13e06c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  4 Nov 2015 18:25:21 +0100

Fix an issue in the dump of the geometry data

The indices of the face vertices should start from 1 rather than 0
(refer to the obj fileformat).

Diffstat:
Msrc/schiff.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/schiff.c b/src/schiff.c @@ -101,7 +101,7 @@ dump_geometries FOR_EACH(itri, 0, ntris) { unsigned ids[3]; S3D(mesh_get_triangle_indices(shape, itri, ids)); - fprintf(stream, "f %u %u %u\n", SPLIT3(ids)); + fprintf(stream, "f %u %u %u\n", ids[0]+1, ids[1]+1, ids[2]+1); } }