Improved block for update_normals if properties don't exist. Documentation for update normals improved

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@575 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-04-10 13:06:29 +00:00
parent dd0cd46eaa
commit a96ca67b16
2 changed files with 62 additions and 20 deletions

View File

@@ -184,9 +184,13 @@ void
PolyMeshT<Kernel>::
update_normals()
{
if (Kernel::has_face_normals()) update_face_normals();
if (Kernel::has_vertex_normals()) update_vertex_normals();
if (Kernel::has_halfedge_normals()) update_halfedge_normals();
// Face normals are required to compute the vertex and the halfedge normals
if (Kernel::has_face_normals() ) {
update_face_normals();
if (Kernel::has_vertex_normals() ) update_vertex_normals();
if (Kernel::has_halfedge_normals()) update_halfedge_normals();
}
}