mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 13:50:05 +00:00
Merge pull request #1301 from barfowl/bfr_val2_interior_bug
Fixed Bfr::Surface construction bug for rare topological case
This commit is contained in:
commit
afaee86641
@ -768,6 +768,10 @@ IrregularPatchBuilder::sharpenBoundaryControlEdges(
|
||||
// sharp. And only boundary edges of the base face are sharpened
|
||||
// here -- it is not necessary to deal with others.
|
||||
//
|
||||
// Append boundary edge sharpness to existing sharp edges:
|
||||
edgeVertPairs += *numSharpEdges * 2;
|
||||
edgeSharpness += *numSharpEdges;
|
||||
|
||||
int faceSize = _surface.GetFaceSize();
|
||||
|
||||
for (int corner = 0; corner < faceSize; ++corner) {
|
||||
|
@ -317,6 +317,10 @@ static const std::string catmark_val2_interior =
|
||||
"f 87/87 88/88 89/89 93/93 92/92 91/91\n"
|
||||
"f 94/94 92/92 93/93 89/89 88/88 90/90\n"
|
||||
"\n"
|
||||
"t crease 2/1/0 87 88 5.0\n"
|
||||
"t crease 2/1/0 88 92 5.0\n"
|
||||
"t crease 2/1/0 92 91 5.0\n"
|
||||
"\n"
|
||||
"#\n"
|
||||
"# Shape 9: bottom-right\n"
|
||||
"#\n"
|
||||
|
Loading…
Reference in New Issue
Block a user