mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-05 06:21:07 +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:
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user