From c8548871ac56ecbfe66a729933d3a99c798bd741 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 13 Apr 2017 10:29:14 +0200 Subject: Cycles: Use more explicit and commonly used names for BVH structures This renames BinaryBVH to BVH2 and QBVH to BVH8. There is no user measurable difference, but allows us to add more types of BVH trees such as BVH8. --- intern/cycles/bvh/bvh.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'intern/cycles/bvh/bvh.h') diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h index 60bc62ee6e4..8e664e67dc5 100644 --- a/intern/cycles/bvh/bvh.h +++ b/intern/cycles/bvh/bvh.h @@ -110,15 +110,15 @@ protected: virtual void refit_nodes() = 0; }; -/* Binary BVH +/* BVH2 * * Typical BVH with each node having two children. */ -class BinaryBVH : public BVH { +class BVH2 : public BVH { protected: /* constructor */ friend class BVH; - BinaryBVH(const BVHParams& params, const vector& objects); + BVH2(const BVHParams& params, const vector& objects); /* pack */ void pack_nodes(const BVHNode *root); @@ -154,15 +154,15 @@ protected: void refit_node(int idx, bool leaf, BoundBox& bbox, uint& visibility); }; -/* QBVH +/* BVH4 * * Quad BVH, with each node having four children, to use with SIMD instructions. */ -class QBVH : public BVH { +class BVH4 : public BVH { protected: /* constructor */ friend class BVH; - QBVH(const BVHParams& params, const vector& objects); + BVH4(const BVHParams& params, const vector& objects); /* pack */ void pack_nodes(const BVHNode *root); -- cgit v1.2.3