mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 22:00:06 +00:00
Fixed Loop patch creation bug with val-3 interior vertex at third corner:
- adjusted point-sharing logic in PatchBuilder::SourcePatch to correct
This commit is contained in:
parent
ff9a3b4fcb
commit
69ab4d6170
@ -1592,8 +1592,13 @@ SourcePatch::GetCornerRingPoints(int corner, int ringPoints[]) const {
|
||||
}
|
||||
} else {
|
||||
if (_corners[corner]._sharesWithNext) {
|
||||
ringPoints[ringSize++] = _corners[cNext]._val2Interior
|
||||
? cPrev : _localRingOffsets[cNext];
|
||||
if (_corners[cNext]._val2Interior) {
|
||||
ringPoints[ringSize++] = cPrev;
|
||||
} else if (_localRingSizes[cNext] == 0) {
|
||||
ringPoints[ringSize++] = _localRingOffsets[cPrev];
|
||||
} else {
|
||||
ringPoints[ringSize++] = _localRingOffsets[cNext];
|
||||
}
|
||||
}
|
||||
}
|
||||
assert(ringSize == _ringSizes[corner]);
|
||||
|
Loading…
Reference in New Issue
Block a user