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

Method GetBoundingBox

trinity/Resources/TriGeometryRes.cpp:423–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421#endif
422
423bool TriGeometryRes::GetBoundingBox( unsigned int meshIx, Vector3& min, Vector3& max ) const
424{
425 TriGeometryResMeshData* mesh = GetMeshData( meshIx );
426 if( !mesh )
427 {
428 return false;
429 }
430
431 min = mesh->m_minBounds;
432 max = mesh->m_maxBounds;
433
434 return true;
435}
436
437Be::Result<std::string> TriGeometryRes::GetBoundingBoxFromScript( unsigned int meshIx, std::pair<Vector3, Vector3>& bounds ) const
438{

Callers 12

GetLocalBoundingBoxMethod · 0.45
IsReadyMethod · 0.45
RenderDebugInfoMethod · 0.45
GetBoundingSphereMethod · 0.45
RebuildMethod · 0.45
UpdateSyncronousMethod · 0.45
GetRenderablesMethod · 0.45
GetLocalBoundingBoxMethod · 0.45
EstimatePixelDiameterMethod · 0.45
GetLocalBoundingBoxMethod · 0.45
UpdateAsyncronousMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected