Blender V4.3
multi.cpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#include "bvh/multi.h"
6
7#include "util/foreach.h"
8
10
12 const vector<Geometry *> &geometry_,
13 const vector<Object *> &objects_)
14 : BVH(params_, geometry_, objects_)
15{
16}
17
19{
20 foreach (BVH *bvh, sub_bvhs) {
21 delete bvh;
22 }
23}
24
26 const vector<Object *> &objects)
27{
28 foreach (BVH *bvh, sub_bvhs) {
29 bvh->replace_geometry(geometry, objects);
30 }
31}
32
BVHMulti(const BVHParams &params, const vector< Geometry * > &geometry, const vector< Object * > &objects)
Definition multi.cpp:11
virtual void replace_geometry(const vector< Geometry * > &geometry, const vector< Object * > &objects)
Definition multi.cpp:25
virtual ~BVHMulti()
Definition multi.cpp:18
vector< BVH * > sub_bvhs
Definition multi.h:15
Definition bvh/bvh.h:66
virtual void replace_geometry(const vector< Geometry * > &geometry, const vector< Object * > &objects)
Definition bvh/bvh.h:78
#define CCL_NAMESPACE_END