Blender V5.0
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
8
10 const vector<Geometry *> &geometry_,
11 const vector<Object *> &objects_)
12 : BVH(params_, geometry_, objects_)
13{
14}
15
18{
19 for (unique_ptr<BVH> &bvh : sub_bvhs) {
20 bvh->replace_geometry(geometry, objects);
21 }
22}
23
void replace_geometry(const vector< Geometry * > &geometry, const vector< Object * > &objects) override
Definition multi.cpp:16
BVHMulti(const BVHParams &params, const vector< Geometry * > &geometry, const vector< Object * > &objects)
Definition multi.cpp:9
vector< unique_ptr< BVH > > sub_bvhs
Definition multi.h:17
vector< Geometry * > geometry
Definition bvh/bvh.h:70
BVH(const BVHParams &params, const vector< Geometry * > &geometry, const vector< Object * > &objects)
Definition bvh.cpp:90
vector< Object * > objects
Definition bvh/bvh.h:71
#define CCL_NAMESPACE_END