Merge pull request #1129 from barfowl/far_fvar_corner_tags

Fixed cracks in face-varying Loop patches for lineaar-boundaries option
This commit is contained in:
David G Yu 2019-06-18 15:10:41 -07:00 committed by GitHub
commit 317e242bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {
// 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) {