star-3d

Surface structuring for efficient 3D geometric queries
git clone git://git.meso-star.fr/star-3d.git
Log | Files | Refs | README | LICENSE

commit 4253d8ee91181875b85982fc59a96d192c8aaef9
parent 80279297218f680435ce79acff276c6665f83d6a
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  8 Jun 2016 18:48:57 +0200

Fix non critical issues in the mesh back-end

Diffstat:
Msrc/s3d_mesh.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/s3d_mesh.c b/src/s3d_mesh.c @@ -268,7 +268,7 @@ exit: *out_mesh = mesh; return res; error: - if(!mesh) { + if(mesh) { mesh_ref_put(mesh); mesh = NULL; } @@ -436,10 +436,7 @@ mesh_compute_volume(struct mesh* mesh, const char flip_surface) h = -f3_dot(N, v0); /* Height from the base to the appex */ volume += (h*B); } - - if(volume < 0.0 && volume > 3.e-6) - volume = 0; - return (float)(volume / 3.0); + return (float)(volume / 3.0); } res_T