From d085681efe1e516aba8b75d1167c0d540096d45b Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 19 Dec 2025 23:19:47 +0300 Subject: [PATCH] removed redundant copy --- .idea/omath.iml | 2 -- include/omath/collision/epa_algorithm.hpp | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 .idea/omath.iml diff --git a/.idea/omath.iml b/.idea/omath.iml deleted file mode 100644 index f08604b..0000000 --- a/.idea/omath.iml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index cd5ed36..1328dab 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -75,8 +75,9 @@ namespace omath::collision if (heap.empty()) break; - const int fidx = heap.top().idx; - const Face face = faces[fidx]; + //FIXME: STORE REF VALUE, DO NOT USE + // AFTER IF STATEMENT BLOCK + const Face& face = faces[heap.top().idx]; // Get the furthest point in face normal direction const VectorType p = support_point(a, b, face.n);