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:
barry 2019-06-14 11:28:22 -07:00
parent ff9a3b4fcb
commit 69ab4d6170

View File

@ -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]);