MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / UpdateBBoxes

Method UpdateBBoxes

src/luxrays/core/dataset.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void DataSet::UpdateBBoxes() {
97 if (totalTriangleCount == 0) {
98 // Just initialize with some default value to avoid problems
99 bbox = Union(Union(bbox, Point(-1.f, -1.f, -1.f)), Point(1.f, 1.f, 1.f));
100 } else {
101 BOOST_FOREACH(const Mesh *m, meshes)
102 bbox = Union(bbox, m->GetBBox());
103 }
104 bsphere = bbox.BoundingSphere();
105}
106
107const Accelerator *DataSet::GetAccelerator() {
108 boost::unordered_map<AcceleratorType, Accelerator *>::const_iterator it = accels.begin();

Callers 1

PreprocessMethod · 0.80

Calls 4

UnionFunction · 0.85
BoundingSphereMethod · 0.80
PointClass · 0.50
GetBBoxMethod · 0.45

Tested by

no test coverage detected