Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-10-13 20:36:10 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-10-15 22:53:58 +0300
commit811dbf55253bf3db9065710c6998d943ef7d169d (patch)
tree84db132a70d07e5ce31e9bd507d8468bd08c7ecd /intern/cycles/bvh/bvh.h
parent383df45af927a9ea40edef2745b70f7f618c1ba7 (diff)
Code cleanup: deduplicate primitive refit code.
Diffstat (limited to 'intern/cycles/bvh/bvh.h')
-rw-r--r--intern/cycles/bvh/bvh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h
index 7bac6112fd9..6a82f915692 100644
--- a/intern/cycles/bvh/bvh.h
+++ b/intern/cycles/bvh/bvh.h
@@ -91,6 +91,9 @@ public:
protected:
BVH(const BVHParams& params, const vector<Object*>& objects);
+ /* Refit range of primitives. */
+ void refit_primitives(int start, int end, BoundBox& bbox, uint& visibility);
+
/* triangles and strands */
void pack_primitives();
void pack_triangle(int idx, float4 storage[3]);