commit 622e65069ef263a442ed9e3d0a1738d0e3f3ff56
parent 548133060fbc8e9f5163cfea09ab8b2908864e45
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 17 Dec 2020 19:00:42 +0100
Fix the setup of the polyhedron
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/suvm_primitive.c b/src/suvm_primitive.c
@@ -318,7 +318,7 @@ tetrahedron_setup
}
if(signf(N[2][i]) != signf(N[3][i])) { /* The edge 5 is silhouette */
f2_normalize(Ep[i][n], f2(Ep[i][n], e[5][k], -e[5][j]));
- Ep[i][n][2] = -(Ep[i][n][0]*v[2][j] + Ep[i][n][2]*v[2][k]);
+ Ep[i][n][2] = -(Ep[i][n][0]*v[2][j] + Ep[i][n][1]*v[2][k]);
++n;
}
/* A tetrahedron can have 3 or 4 silhouette edges once projected in 2D */