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