mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-06 23:10:09 +00:00
Merge pull request #1104 from barfowl/far_sharp_patch_bug
Fixed patch construction bug with sharp corner patches
This commit is contained in:
commit
464e20538a
@ -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());
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user