commit 415c77e375eff7f059df0a04c57e8492a3149ec0
parent 3189140dad103c739756fe68006a5dbbee4fab90
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Sun, 25 Apr 2021 18:06:53 +0200
Fix the slope geometry
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sgs_geometry_slope.c b/src/sgs_geometry_slope.c
@@ -80,8 +80,8 @@ setup_slope_mesh
vtx[2*3+0] = low[0]; vtx[2*3+1] = upp[1]; vtx[2*3+2] = low[2];
vtx[3*3+0] = upp[0]; vtx[3*3+1] = upp[1]; vtx[3*3+2] = low[2];
vtx[4*3+0] = low[0]; vtx[4*3+1] = low[1]; vtx[4*3+2] = heights[0];
- vtx[5*3+0] = upp[0]; vtx[5*3+1] = low[1]; vtx[5*3+2] = heights[0];
- vtx[6*3+0] = low[0]; vtx[6*3+1] = upp[1]; vtx[6*3+2] = heights[1];
+ vtx[5*3+0] = upp[0]; vtx[5*3+1] = low[1]; vtx[5*3+2] = heights[1];
+ vtx[6*3+0] = low[0]; vtx[6*3+1] = upp[1]; vtx[6*3+2] = heights[0];
vtx[7*3+0] = upp[0]; vtx[7*3+1] = upp[1]; vtx[7*3+2] = heights[1];
/* Setup the triangles */