9 std::vector<EntityID> emptyEntities;
10 std::vector<EntityID> nodes;
11 std::vector<EntityID> links;
13 glm::vec3 boundingBox_origin = glm::vec3(0);
14 glm::vec3 boundingBox_size = glm::vec3(0);
15 glm::vec3 boundingBox_center = glm::vec3(0);
17 Cell* parent =
nullptr;
18 std::vector<Cell*> children;
21 std::vector<T*>& getEntityList() {
22 if constexpr (std::is_same_v<T, NodeEntity>) {
25 else if constexpr (std::is_same_v<T, EmptyEntity>) {
28 else if constexpr (std::is_same_v<T, LinkEntity>) {
32 static_assert(
sizeof(T) == 0,
"Unsupported entity type.");