Merge pull request #1301 from barfowl/bfr_val2_interior_bug

Fixed Bfr::Surface construction bug for rare topological case
This commit is contained in:
David G Yu 2023-06-15 13:42:03 -07:00 committed by GitHub
commit afaee86641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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) {

View File

@ -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"