This commit is contained in:
Nathan Litke 2014-06-02 14:20:02 -07:00
parent 0af14f8ac6
commit e28215446a
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

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