From a94c78f834b30894a5be075b1e25454b61ee4f63 Mon Sep 17 00:00:00 2001 From: Orange Date: Sun, 14 Dec 2025 10:39:23 +0300 Subject: [PATCH] added nodiscard --- include/omath/collision/epa_algorithm.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index 9427f26..599b4d8 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -111,6 +111,7 @@ namespace omath::collision { if (to_delete[i]) continue; + if (visible_from(faces[i], p)) { const auto& rf = faces[i]; @@ -266,6 +267,7 @@ namespace omath::collision return d; return V{1, 0, 0}; } + [[nodiscard]] static std::pmr::vector create_initial_tetra_faces(std::pmr::memory_resource& mem_resource, const std::pmr::vector& vertexes) {