| 365 | } |
| 366 | |
| 367 | void TSPartInstance::computePolyCount() |
| 368 | { |
| 369 | if (!mSizeCutoffs) |
| 370 | mNumDetails = mSourceShape->getShape()->mSmallestVisibleDL+1; |
| 371 | |
| 372 | delete [] mPolyCount; |
| 373 | mPolyCount = new S32[mNumDetails]; |
| 374 | |
| 375 | for (S32 i=0; i<mNumDetails; i++) |
| 376 | { |
| 377 | mPolyCount[i] = 0; |
| 378 | for (S32 j=0; j<mMeshObjects.size(); j++) |
| 379 | { |
| 380 | if (mMeshObjects[j]->getMesh(i)) |
| 381 | mPolyCount[i] += mMeshObjects[j]->getMesh(i)->getNumPolys(); |
| 382 | } |
| 383 | } |
| 384 | } |
| 385 | |
| 386 |
nothing calls this directly
no test coverage detected