From 1f0620c25312d2fad5ca541be91af02236a8da1c Mon Sep 17 00:00:00 2001 From: Myles Busig Date: Mon, 17 Feb 2025 19:26:23 -0800 Subject: [PATCH] Add marker containing position & id, make group use child markers not vec2 --- include/fractal.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/fractal.hpp b/include/fractal.hpp index 774e5e5..129d8a5 100644 --- a/include/fractal.hpp +++ b/include/fractal.hpp @@ -40,6 +40,11 @@ struct group_characteristic_t { etl::vector m_variable_ids; }; +struct marker_t { + mtl::vec2 m_pos; + uint32_t m_id; +}; + struct leaf_t { group_id_t m_group_id; mtl::vec2 m_position; @@ -54,10 +59,10 @@ struct weighted_leaf_t { struct group_t { static constexpr size_t g_max_child_leafs = 16; - static constexpr size_t g_max_group_points = 8; + static constexpr size_t g_max_child_markers = 8; etl::vector m_child_leafs; - etl::vector m_points; + etl::vector m_child_markers; }; struct weighted_group_t {