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

Method GetAreaCount

trinity/Resources/TriGeometryRes.cpp:492–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492unsigned int TriGeometryRes::GetAreaCount( unsigned int meshIx ) const
493{
494 auto mesh = GetMeshData( meshIx );
495 if( !mesh )
496 {
497 return 0;
498 }
499
500 //Get the first LOD.
501 auto& lod = mesh->m_lods[0];
502
503 return (unsigned int)lod->m_areas.size();
504}
505
506TriGeometryResAreaData* TriGeometryRes::GetAreaData( unsigned int meshIx, unsigned int areaIx ) const
507{

Callers 1

RenderDebugInfoMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected