From 1964d3d36fd91cb5cd745f2e972da0cea5ab6cfa Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 4 Dec 2025 04:52:22 +0300 Subject: [PATCH] replaced with bool --- include/omath/collision/epa_algorithm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index d707beb..b352f69 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -111,7 +111,7 @@ namespace omath::collision vertexes.emplace_back(p); // Mark faces visible from p and collect their horizon - std::pmr::vector to_delete(faces.size(), 0, mem_resource.get()); + std::pmr::vector to_delete(faces.size(), false, mem_resource.get()); // uses single bits std::pmr::vector boundary{mem_resource.get()}; boundary.reserve(faces.size() * 2); @@ -122,7 +122,7 @@ namespace omath::collision if (visible_from(faces[i], p)) { const auto& rf = faces[i]; - to_delete[i] = 1; + to_delete[i] = true; add_edge_boundary(boundary, rf.i0, rf.i1); add_edge_boundary(boundary, rf.i1, rf.i2); add_edge_boundary(boundary, rf.i2, rf.i0);