diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-21 20:40:14 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-24 10:46:40 +0300 |
commit | c88c5db3601b82f347f2f54f49fae8ae173ff03b (patch) | |
tree | d0d0fc9f0a3df1bd02d415f23f0b78d2e2b0768f /intern/cycles/bvh/bvh_split.h | |
parent | 99c1870ad5462d1fd81324c8607aad44d0b2deb1 (diff) |
Cycles: Make primitive split code easier for re-use by reference splitting function
Diffstat (limited to 'intern/cycles/bvh/bvh_split.h')
-rw-r--r-- | intern/cycles/bvh/bvh_split.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_split.h b/intern/cycles/bvh/bvh_split.h index 1b550d11b15..f9bed5f69e9 100644 --- a/intern/cycles/bvh/bvh_split.h +++ b/intern/cycles/bvh/bvh_split.h @@ -63,6 +63,20 @@ public: float pos); protected: + void split_triangle_primitive(const Mesh *mesh, + int prim_index, + int dim, + float pos, + BoundBox& left_bounds, + BoundBox& right_bounds); + void split_curve_primitive(const Mesh *mesh, + int prim_index, + int segment_index, + int dim, + float pos, + BoundBox& left_bounds, + BoundBox& right_bounds); + void split_triangle_reference(const BVHReference& ref, const Mesh *mesh, int dim, |