From 8a99d0e1bef33bdff4deb0c327f7d8df08f447b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Thu, 26 Nov 2009 07:48:17 +0000 Subject: [PATCH] Fixed undefined macro CHECK in calc_dihedral_angle_fast git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@242 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/Mesh/PolyMeshT.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OpenMesh/Core/Mesh/PolyMeshT.hh b/src/OpenMesh/Core/Mesh/PolyMeshT.hh index 749bf750..b17672fe 100644 --- a/src/OpenMesh/Core/Mesh/PolyMeshT.hh +++ b/src/OpenMesh/Core/Mesh/PolyMeshT.hh @@ -367,7 +367,9 @@ public: \attention Needs the Attributes::Normal attribute for faces */ Scalar calc_dihedral_angle_fast(HalfedgeHandle _heh) const { - CHECK(Kernel::has_face_normals()); + // Make sure that we have face normals on the mesh + assert(Kernel::has_face_normals()); + if (is_boundary(edge_handle(_heh))) {//the dihedral angle at a boundary edge is 0 return 0;