aboutsummaryrefslogtreecommitdiffstats
path: root/src/bvh.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2026-05-05 00:50:13 +0200
committerladevieq <ladevie.quentin@gmail.com>2026-05-05 00:50:49 +0200
commit37fdcb8a0f435c42f737252450626f2bd38bbd0f (patch)
tree7eeb45a2d2d08483409a04c74fbc74fb2bbcde9f /src/bvh.cpp
parent6818cbfe21beefc04e4a174d44a92159c34cead1 (diff)
Clean up around included files
Diffstat (limited to 'src/bvh.cpp')
-rw-r--r--src/bvh.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/bvh.cpp b/src/bvh.cpp
index 8e62a93..9362504 100644
--- a/src/bvh.cpp
+++ b/src/bvh.cpp
@@ -1,11 +1,5 @@
#include "bvh.hpp"
-#include <cassert>
-
-#include <algorithm>
-#include <cstdint>
-#include <cstdio>
-
// bvh::bvh(std::vector<sphere>& spheres, std::vector<packed_bvh_node>& packed_nodes)
// :spheres(spheres) {
// packed_nodes.resize(2 * spheres.size() - 1);
@@ -48,6 +42,7 @@
bvh::bvh(std::vector<triangle>& triangles, std::vector<packed_bvh_node>& packed_nodes)
:triangles(triangles) {
+ BEGIN_MARKER(GENERATE_BVH);
assert(!triangles.empty());
packed_nodes.resize(2 * triangles.size() - 1);
@@ -84,6 +79,8 @@ bvh::bvh(std::vector<triangle>& triangles, std::vector<packed_bvh_node>& packed_
node.next_id = temp_nodes[old_node.next_id].df_id;
}
}
+
+ END_MARKER(GENERATE_BVH);
}
//-------------------------