improve MergeMetaTriangles out surfaces quality and reduce count

This commit is contained in:
Garux 2021-09-03 06:19:41 +03:00
parent 7f8e548c2f
commit d113eed245

View File

@ -1634,15 +1634,8 @@ static void MetaTrianglesToSurface( metaTriangle_t *begin, metaTriangle_t *end,
/* if we have a score over a certain threshold, just use it */
if ( bestScore >= GOOD_SCORE ) {
if ( AddMetaTriangleToSurface( ds, best, texMinMax, sorted_indices, false ) ) {
( *numAdded )++;
testend = expand_range( best );
}
/* reset */
best = nullptr;
bestScore = 0;
added = true;
/* don't keep "we're on the right track, yay!" run, but restart loop; produces fewer and more quality surfaces */
break;
}
}
}