From 2581b0015ec2b3175e4a4722caacec2e86e92ee7 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 27 Dec 2006 15:09:52 +0000 Subject: [PATCH] Bug fix on ComputeDihedralAngle function --- vcg/complex/trimesh/hole.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/hole.h b/vcg/complex/trimesh/hole.h index a2587914..694fff49 100644 --- a/vcg/complex/trimesh/hole.h +++ b/vcg/complex/trimesh/hole.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.28 2006/12/12 11:14:51 cignoni +Commented some variant of the quality measure of weighted ears + Revision 1.27 2006/12/07 00:40:18 cignoni Added many this-> for gcc compiling @@ -755,7 +758,8 @@ template { CoordType n1 = ((p1 - p2) ^ (p3 - p1) ).Normalize(); CoordType n2 = ((p2 - p1) ^ (p4 - p2) ).Normalize(); - ScalarType t = (n1 * n2 ) ; + ScalarType t = (n1 * n2 ); + if(t == 0)return 0; return math::ToDeg(acos(t)); }