test/unit/utScenePreprocessor.cpp
// ------------------------------------------------------------------------------------------------
// Check whether ProcessMesh() returns flag for a mesh that consist of primitives with num indices
Check whether ProcessMesh() returns flag for a mesh that consist of primitives with num indices
Check whether ProcessMesh () returns flag for a mesh that consist of primitives with num indices
void ScenePreprocessorTest::CheckIfOnly(aiMesh* p, unsigned int num, unsigned int flag)
{
    for (unsigned i = 0; i < p->mNumFaces;++i) {
        p->mFaces[i].mNumIndices = num;
    }
    pp->ProcessMesh(p);
    EXPECT_EQ(flag, p->mPrimitiveTypes);
    p->mPrimitiveTypes = 0;
}
void ScenePreprocessorTest :: CheckIfOnly ( aiMesh * p , unsigned int num , unsigned int flag ) { for ( unsigned i = 0 ; i < p -> mNumFaces ; ++ i ) { p -> mFaces [ i ] . mNumIndices = num ; } pp -> ProcessMesh ( p ) ; EXPECT_EQ ( flag , p -> mPrimitiveTypes ) ; p -> mPrimitiveTypes = 0 ; }
Check whether ProcessMesh() returns flag for a mesh that consist of primitives with num indices
Check whether ProcessMesh () returns flag for a mesh that consist of primitives with num indices
// Triangles only