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

Method RebuildBoundingSphere

trinity/Eve/Turret/EveTurretSet.cpp:3302–3313  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Exposed function to trigger a recalculation of the stored bounding data --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3300// Exposed function to trigger a recalculation of the stored bounding data
3301// --------------------------------------------------------------------------------
3302void EveTurretSet::RebuildBoundingSphere()
3303{
3304 // if there is geometry there, just ask it to rebuild
3305 if( m_geometryResource )
3306 {
3307 if( m_geometryResource->GetMeshCount() )
3308 {
3309 m_geometryResource->RecalculateBoundingSphere();
3310 m_geometryResource->GetBoundingSphere( 0, m_boundingSphere );
3311 }
3312 }
3313}
3314
3315// --------------------------------------------------------------------------------
3316// Description:

Callers

nothing calls this directly

Calls 3

GetMeshCountMethod · 0.45
GetBoundingSphereMethod · 0.45

Tested by

no test coverage detected