Improved block checks

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@576 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-04-10 13:10:23 +00:00
parent a96ca67b16
commit efba0c9060

View File

@@ -81,13 +81,17 @@ TEST_F(OpenMeshNormals, NormalCalculations) {
// Check one Request only vertex normals // Check one Request only vertex normals
// Face normals are required for vertex and halfedge normals, so // 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 // that prevent access to non existing properties are in place
mesh_.request_vertex_normals(); mesh_.request_vertex_normals();
mesh_.request_face_normals();
mesh_.request_halfedge_normals(); mesh_.request_halfedge_normals();
// Check blocks
mesh_.update_normals();
// Request required face normals
mesh_.request_face_normals();
// Automatically compute all normals // Automatically compute all normals
// As only vertex normals are requested and no face normals, this will compute nothing. // As only vertex normals are requested and no face normals, this will compute nothing.
mesh_.update_normals(); mesh_.update_normals();