commit 54a68f31493571dbaac3b9561ad9c60daea218ca
parent 1807e4be19d4adb1bd24c1fedb86e84801aefc24
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Thu, 14 May 2020 17:21:19 +0200
BugFix: error in volume computation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/senc3d_scene_analyze.c b/src/senc3d_scene_analyze.c
@@ -463,7 +463,7 @@ extract_connex_components
* must be 0. To achieve this, we just skip both sides */
double _2base = norm; /* 2 * base area */
double h = -d3_dot(normal, v0); /* Height of the tetrahedron */
- if((trg_in->medium[SENC3D_FRONT] == medium)
+ if((trg_comp->component[SENC3D_FRONT] == cc->cc_id)
== (scn->convention & SENC3D_CONVENTION_NORMAL_FRONT))
cc->_6volume += (h * _2base);
else