| 165 | } |
| 166 | |
| 167 | void BoundingVolumeHierarchy::DrawDebug() const |
| 168 | { |
| 169 | constexpr auto BOX_COLOR = Color(1.0f, 1.0f, 1.0f, 0.5f); |
| 170 | |
| 171 | //PrintDebugMessage("BOUNDING TREE DEBUG"); |
| 172 | |
| 173 | if (!_nodes.empty()) |
| 174 | { |
| 175 | //PrintDebugMessage("Nodes: %d", (int)_nodes.size()); |
| 176 | //PrintDebugMessage("Root height: %d", _nodes[_rootId].Height); |
| 177 | } |
| 178 | |
| 179 | for (const auto& node : _nodes) |
| 180 | DrawDebugBox(node.Aabb, BOX_COLOR); |
| 181 | } |
| 182 | |
| 183 | std::vector<int> BoundingVolumeHierarchy::GetBoundedObjectIds(const std::function<bool(const Node& node)>& testCollRoutine) const |
| 184 | { |
nothing calls this directly
no test coverage detected