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

Method CacheBounds

trinity/Tr2MeshBase.cpp:343–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void Tr2MeshBase::CacheBounds()
344{
345 auto geometry = GetGeometryResource();
346 if( !geometry || !geometry->GetBoundingBox( m_meshIndex, m_cachedBounds.m_min, m_cachedBounds.m_max ) )
347 {
348 m_cachedBounds = CcpMath::AxisAlignedBox();
349 return;
350 }
351
352 m_cachedBounds = m_boundsAdjustment.AdjustBounds( m_cachedBounds );
353}
354
355bool Tr2MeshBase::GetBoundingBox( Vector3& min, Vector3& max ) const
356{

Callers

nothing calls this directly

Calls 2

AdjustBoundsMethod · 0.80
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected