| 116 | } |
| 117 | |
| 118 | BoundingBox ModelLODBase::GetBox() const |
| 119 | { |
| 120 | Vector3 min = Vector3::Maximum, max = Vector3::Minimum; |
| 121 | Vector3 corners[8]; |
| 122 | const int32 meshCount = GetMeshesCount(); |
| 123 | for (int32 meshIndex = 0; meshIndex < meshCount; meshIndex++) |
| 124 | { |
| 125 | GetMesh(meshIndex)->GetBox().GetCorners(corners); |
| 126 | for (int32 i = 0; i < 8; i++) |
| 127 | { |
| 128 | min = Vector3::Min(min, corners[i]); |
| 129 | max = Vector3::Max(max, corners[i]); |
| 130 | } |
| 131 | } |
| 132 | return BoundingBox(min, max); |
| 133 | } |
| 134 | |
| 135 | BoundingBox ModelLODBase::GetBox(const Matrix& world) const |
| 136 | { |
nothing calls this directly
no test coverage detected