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
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
friend class BVH
Definition multi.h:18
vector< Geometry * > geometry
Definition bvh/bvh.h:69
virtual void replace_geometry(const vector< Geometry * > &geometry, const vector< Object * > &objects)
Definition bvh/bvh.h:78
vector< Object * > objects
Definition bvh/bvh.h:70
#define CCL_NAMESPACE_END