From 71ab2f7b3537a158810cc68e2d9802a9e0a6951c Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 21 Aug 2023 15:53:10 +0900 Subject: [PATCH] Minor fix when generating surface_triangles --- src/surface_triangle.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/surface_triangle.h b/src/surface_triangle.h index 1b09d13..3326bfb 100644 --- a/src/surface_triangle.h +++ b/src/surface_triangle.h @@ -55,17 +55,11 @@ surface_to_triangles(const std::array &surface, triangles->at(toffset) = SurfaceTriangle( Vector3{0.5F, surface_unit.ne, -0.5F}, Vector3{-0.5F, surface_unit.nw, -0.5F}, - Vector3{-0.5F, surface_unit.sw, 0.5F}, - Vector3{posx, - (surface_unit.ne + surface_unit.nw + surface_unit.sw) / 3.0F, - posz}); + Vector3{-0.5F, surface_unit.sw, 0.5F}, Vector3{posx, 0.0F, posz}); triangles->at(toffset + 1) = SurfaceTriangle( Vector3{0.5F, surface_unit.ne, -0.5F}, Vector3{-0.5F, surface_unit.sw, 0.5F}, - Vector3{0.5F, surface_unit.se, 0.5F}, - Vector3{posx, - (surface_unit.ne + surface_unit.sw + surface_unit.se) / 3.0F, - posz}); + Vector3{0.5F, surface_unit.se, 0.5F}, Vector3{posx, 0.0F, posz}); } return triangles;