Commit efba0c90 authored by Jan Möbius's avatar Jan Möbius

Improved block checks



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@576 fdac6126-5c0c-442c-9429-916003d36597
parent a96ca67b
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment