From 23b8c75d19dd0b96d52fc671fe8199b9f8c192ca Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Tue, 26 Dec 2023 16:47:40 +0100 Subject: [PATCH] fix wrong orientation in createCone function --- include/vclib/algorithms/create/cone.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vclib/algorithms/create/cone.h b/include/vclib/algorithms/create/cone.h index 5bf701da1..d0b838243 100644 --- a/include/vclib/algorithms/create/cone.h +++ b/include/vclib/algorithms/create/cone.h @@ -99,7 +99,7 @@ MeshType createCone( } else { for (uint i = 0; i < subdivisions; ++i) { - mesh.addFace(1, b1 + i, b1 + (i + 1) % subdivisions); + mesh.addFace(1, b1 + (i + 1) % subdivisions, b1 + i); } }