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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user