| 364 | } |
| 365 | |
| 366 | CcpMath::AxisAlignedBox Tr2InstancedMesh::GetInstanceBounds() const |
| 367 | { |
| 368 | auto geometryResource = GetGeometryResource(); |
| 369 | CcpMath::AxisAlignedBox instance; |
| 370 | if( geometryResource && geometryResource->GetBoundingBox( m_meshIndex, instance.m_min, instance.m_max ) ) |
| 371 | { |
| 372 | return instance; |
| 373 | } |
| 374 | return CcpMath::AxisAlignedBox(); |
| 375 | } |
| 376 | |
| 377 | |
| 378 | CcpMath::Sphere Tr2InstancedMesh::GetInstanceBoundsClosestToPoint( const Vector3& point ) const |
nothing calls this directly
no test coverage detected