Added
Link Here
|
1 |
--- openpgl/spatial/kdtree/KDTreeBuilder.h.orig 2023-01-06 07:33:35 UTC |
2 |
+++ openpgl/spatial/kdtree/KDTreeBuilder.h |
3 |
@@ -250,8 +250,8 @@ struct KDTreePartitionBuilder (private) |
4 |
|
5 |
#ifdef OPENPGL_USE_OMP_THREADING |
6 |
#pragma omp task mergeable |
7 |
- updateTreeNode(kdTree, kdTree->getNode(nodeIdsLeftRight[0]), depth + 1, sampleRangeLeftRight[0], sampleStatsLeftRight[0], dataStorage, buildSettings); |
8 |
- updateTreeNode(kdTree, kdTree->getNode(nodeIdsLeftRight[1]), depth + 1, sampleRangeLeftRight[1], sampleStatsLeftRight[1], dataStorage, buildSettings); |
9 |
+ updateTreeNode(kdTree, kdTree->getNode(nodeIdsLeftRight[0]), depth + 1, samples, sampleRangeLeftRight[0], sampleStatsLeftRight[0], dataStorage, buildSettings); |
10 |
+ updateTreeNode(kdTree, kdTree->getNode(nodeIdsLeftRight[1]), depth + 1, samples, sampleRangeLeftRight[1], sampleStatsLeftRight[1], dataStorage, buildSettings); |
11 |
#else |
12 |
tbb::parallel_invoke( |
13 |
[&]{updateTreeNode(kdTree, kdTree->getNode(nodeIdsLeftRight[0]), depth + 1, samples, sampleRangeLeftRight[0], sampleStatsLeftRight[0], dataStorage, buildSettings);}, |
14 |
@@ -299,4 +299,4 @@ inline void KDTreePartitionBuilder<TRegion, TContainer |
15 |
stream.read(reinterpret_cast<char*>(&maxSamples), sizeof(size_t)); |
16 |
stream.read(reinterpret_cast<char*>(&maxDepth), sizeof(size_t)); |
17 |
} |
18 |
-} |
19 |
\ No newline at end of file |
20 |
+} |