mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-06 23:10:09 +00:00
Added condition to compensate for incorrect FVar corner tags:
- re-assess corner tags for irregular patches on FVar boundaries
This commit is contained in:
parent
db9c01e7e0
commit
6d3e1b02af
@ -833,7 +833,12 @@ PatchBuilder::GetIrregularPatchCornerSpans(int levelIndex, Index faceIndex,
|
|||||||
|
|
||||||
// Sharpen the span if a corner or subject to inf-sharp features:
|
// Sharpen the span if a corner or subject to inf-sharp features:
|
||||||
if (vTag._corner) {
|
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) {
|
} else if (isNonManifold) {
|
||||||
cornerSpans[i]._sharp = vTag._infSharp;
|
cornerSpans[i]._sharp = vTag._infSharp;
|
||||||
} else if (testInfSharpFeatures) {
|
} else if (testInfSharpFeatures) {
|
||||||
|
Loading…
Reference in New Issue
Block a user