Merge pull request #1104 from barfowl/far_sharp_patch_bug

Fixed patch construction bug with sharp corner patches
This commit is contained in:
David G Yu 2019-05-14 17:38:24 -07:00 committed by GitHub
commit 464e20538a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -1251,6 +1251,8 @@ GregoryConverter<REAL>::getIrregularFacePointSize(
CornerTopology const & corner = _corners[cIndexNear];
CornerTopology const & adjCorner = _corners[cIndexFar];
if (corner.isSharp && adjCorner.isSharp) return 2;
int thisSize = corner.isSharp
? 6
: (1 + corner.ringPoints.GetSize());

View File

@ -1281,6 +1281,8 @@ GregoryTriConverter<REAL>::getIrregularFacePointSize(
CornerTopology const & nearCorner = _corners[cIndexNear];
CornerTopology const & farCorner = _corners[cIndexFar];
if (nearCorner.isSharp && farCorner.isSharp) return 2;
int nearSize = nearCorner.ringPoints.GetSize() - 3;
int farSize = farCorner.ringPoints.GetSize() - 3;