| 490 | } |
| 491 | |
| 492 | unsigned 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 | |
| 506 | TriGeometryResAreaData* TriGeometryRes::GetAreaData( unsigned int meshIx, unsigned int areaIx ) const |
| 507 | { |