Improved block checks
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@576 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user