Fixed regression in application of smooth corner patch approximation:

- only apply the approximation at corners determined to be smooth
This commit is contained in:
barry 2019-05-21 19:53:21 -07:00
parent eec8e94b2a
commit a18a706f93

View File

@ -842,7 +842,8 @@ PatchBuilder::GetIrregularPatchCornerSpans(int levelIndex, Index faceIndex,
}
// Legacy option -- reinterpret a smooth corner as sharp:
if (_options.approxSmoothCornerWithSharp && vTag._xordinary &&
bool smoothCorner = !cornerSpans[i]._sharp;
if (smoothCorner && _options.approxSmoothCornerWithSharp && vTag._xordinary &&
vTag._boundary && !vTag._infSharp && !vTag._nonManifold) {
int nFaces = cornerSpans[i].isAssigned()
? cornerSpans[i]._numFaces