| 393 | } |
| 394 | |
| 395 | BoundingBox ModelLodData::GetBox() const |
| 396 | { |
| 397 | if (Meshes.IsEmpty()) |
| 398 | return BoundingBox::Empty; |
| 399 | BoundingBox bounds; |
| 400 | Meshes[0]->CalculateBox(bounds); |
| 401 | for (int32 i = 1; i < Meshes.Count(); i++) |
| 402 | { |
| 403 | BoundingBox b; |
| 404 | Meshes[i]->CalculateBox(b); |
| 405 | BoundingBox::Merge(bounds, b, bounds); |
| 406 | } |
| 407 | return bounds; |
| 408 | } |
| 409 | |
| 410 | void ModelData::CalculateLODsScreenSizes() |
| 411 | { |
no test coverage detected