mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-10 06:10:07 +00:00
Changes to address comments from https://github.com/PixarAnimationStudios/OpenSubdiv/pull/310.
This commit is contained in:
parent
0af14f8ac6
commit
e28215446a
@ -236,7 +236,7 @@ FarCatmarkSubdivisionTablesFactory<T,U>::Create( FarMeshFactory<T,U> * meshFacto
|
||||
|
||||
if (kernelType == FarKernelBatch::CATMARK_RESTRICTED_EDGE_VERTEX) {
|
||||
// in the case of a sharp edge, repeat the endpoint vertices
|
||||
if (!e->IsBoundary() && esharp < 1.0f) {
|
||||
if (!e->IsBoundary() && esharp == 0.0f) {
|
||||
HbrFace<T>* rf = e->GetRightFace();
|
||||
HbrFace<T>* lf = e->GetLeftFace();
|
||||
|
||||
|
@ -207,6 +207,8 @@ FarSubdivisionTablesFactory<T,U>::FarSubdivisionTablesFactory( HbrMesh<T> const
|
||||
}
|
||||
} else if (v->GetParentEdge()) {
|
||||
edgeCounts[depth]++;
|
||||
|
||||
// Determine if any edges have fractional sharpness.
|
||||
float sharpness = v->GetParentEdge()->GetSharpness();
|
||||
if (sharpness > 0.0f && sharpness < 1.0f)
|
||||
_hasFractionalEdgeSharpness = true;
|
||||
|
Loading…
Reference in New Issue
Block a user