MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetInstanceBounds

Method GetInstanceBounds

trinity/Tr2InstancedMesh.cpp:366–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366CcpMath::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
378CcpMath::Sphere Tr2InstancedMesh::GetInstanceBoundsClosestToPoint( const Vector3& point ) const

Callers

nothing calls this directly

Calls 1

GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected