check for area test if the face is a triangle.
parent
30e06f7437
commit
ad2ff9fd71
|
@ -172,14 +172,16 @@ void FindDegeneratesProcess::ExecuteOnMesh( aiMesh* mesh) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ai_real area = calculateAreaOfTriangle( face, mesh );
|
if ( face.mNumIndices == 3 ) {
|
||||||
if ( area < 1e-6 ) {
|
ai_real area = calculateAreaOfTriangle( face, mesh );
|
||||||
if ( configRemoveDegenerates ) {
|
if ( area < 1e-6 ) {
|
||||||
remove_me[ a ] = true;
|
if ( configRemoveDegenerates ) {
|
||||||
goto evil_jump_outside;
|
remove_me[ a ] = true;
|
||||||
}
|
goto evil_jump_outside;
|
||||||
|
}
|
||||||
|
|
||||||
// todo: check for index which is corrupt.
|
// todo: check for index which is corrupt.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue