From 86816cc60fd26aacc777e33528f466214dee05e7 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Mon, 4 Aug 2008 11:03:48 +0000 Subject: [PATCH] added few missing template type --- vcg/complex/trimesh/hole.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/complex/trimesh/hole.h b/vcg/complex/trimesh/hole.h index 79e3a21f..19ba3bae 100644 --- a/vcg/complex/trimesh/hole.h +++ b/vcg/complex/trimesh/hole.h @@ -340,7 +340,7 @@ namespace vcg { { if(TE::IsConcave() == c.IsConcave()) { - return (pow(dihedralRad,DiedralWeight())/aspectRatio) > (pow(c.dihedralRad,DiedralWeight())/c.aspectRatio); + return (pow((float)dihedralRad,(float)DiedralWeight())/aspectRatio) > (pow((float)c.dihedralRad,(float)DiedralWeight())/c.aspectRatio); } if(TE::IsConcave()) return true; // assert(c.IsConcave()); @@ -351,8 +351,8 @@ namespace vcg { virtual void ComputeQuality() { //compute quality by (dihedral ancgle, area/sum(edge^2) ) - Point3f n1=TE::e0.FFlip()->cN(); - Point3f n2=TE::e1.FFlip()->cN(); + typename MESH::CoordType n1=TE::e0.FFlip()->cN(); + typename MESH::CoordType n2=TE::e1.FFlip()->cN(); dihedralRad = std::max(Angle(TE::n,n1),Angle(TE::n,n2)); aspectRatio = QualityFace(*this);