Adapt ai_epsilon to code

This commit is contained in:
Kim Kulling
2022-02-16 20:07:27 +01:00
parent 067c5d9ec4
commit 76a7614c4b
13 changed files with 39 additions and 43 deletions

View File

@@ -221,7 +221,7 @@ bool FindDegeneratesProcess::ExecuteOnMesh( aiMesh* mesh) {
if ( mConfigCheckAreaOfTriangle ) {
if ( face.mNumIndices == 3 ) {
ai_real area = calculateAreaOfTriangle( face, mesh );
if ( area < 1e-6 ) {
if (area < ai_epsilon) {
if ( mConfigRemoveDegenerates ) {
remove_me[ a ] = true;
++deg;