From efba0c90600373b0a1dac4db519f4fea40209210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 10 Apr 2012 13:10:23 +0000 Subject: [PATCH] Improved block checks git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@576 fdac6126-5c0c-442c-9429-916003d36597 --- src/Unittests/unittests_trimesh_normal_calculations.hh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Unittests/unittests_trimesh_normal_calculations.hh b/src/Unittests/unittests_trimesh_normal_calculations.hh index 5d74f037..12dedd11 100644 --- a/src/Unittests/unittests_trimesh_normal_calculations.hh +++ b/src/Unittests/unittests_trimesh_normal_calculations.hh @@ -81,13 +81,17 @@ TEST_F(OpenMeshNormals, NormalCalculations) { // Check one Request only vertex normals // Face normals are required for vertex and halfedge normals, so - // This will compute no normals and is only a runtime check if the blocks // that prevent access to non existing properties are in place mesh_.request_vertex_normals(); - mesh_.request_face_normals(); mesh_.request_halfedge_normals(); + // Check blocks + mesh_.update_normals(); + + // Request required face normals + mesh_.request_face_normals(); + // Automatically compute all normals // As only vertex normals are requested and no face normals, this will compute nothing. mesh_.update_normals();