normalize normals of current faces instead of using new normals

This commit is contained in:
Paolo Cignoni 2008-04-19 05:15:44 +00:00
parent 1f6ba5e9d5
commit 6cceb94d59
1 changed files with 4 additions and 2 deletions
vcg/complex/trimesh

View File

@ -65,7 +65,9 @@ void CreaseCut(MESH_TYPE &m, float angleRad)
tri::Allocator<MESH_TYPE>::CompactVertexVector(m);
tri::Allocator<MESH_TYPE>::CompactFaceVector(m);
tri::UpdateNormals<MESH_TYPE>::PerFaceNormalized(m);
tri::UpdateNormals<MESH_TYPE>::NormalizeFace(m);
assert(m.HasFFTopology());
typename MESH_TYPE::ScalarType cosangle=math::Cos(angleRad);
@ -137,7 +139,7 @@ void CreaseCut(MESH_TYPE &m, float angleRad)
(*fi).V(j) = & m.vert[curVertexInd];
}
}
tri::UpdateNormals<MESH_TYPE>::PerVertexNormalized(m);
tri::UpdateNormals<MESH_TYPE>::PerVertexFromCurrentFaceNormal(m);
}
} // end namespace tri