| 94 | } |
| 95 | |
| 96 | void 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 | |
| 107 | const Accelerator *DataSet::GetAccelerator() { |
| 108 | boost::unordered_map<AcceleratorType, Accelerator *>::const_iterator it = accels.begin(); |
no test coverage detected