Added condition to compensate for incorrect FVar corner tags:

- re-assess corner tags for irregular patches on FVar boundaries
This commit is contained in:
barry 2019-06-18 11:24:23 -07:00
parent db9c01e7e0
commit 6d3e1b02af

View File

@ -833,7 +833,12 @@ PatchBuilder::GetIrregularPatchCornerSpans(int levelIndex, Index faceIndex,
// Sharpen the span if a corner or subject to inf-sharp features:
if (vTag._corner) {
cornerSpans[i]._sharp = true;
// Corners tagged in FVar space need additional qualification:
if (isFVarMisMatch) {
cornerSpans[i]._sharp = (cornerSpans[i]._numFaces == 1) || isNonManifold;
} else {
cornerSpans[i]._sharp = true;
}
} else if (isNonManifold) {
cornerSpans[i]._sharp = vTag._infSharp;
} else if (testInfSharpFeatures) {