From 200add76642f5ad655f093740a69eb6e6a77daf9 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 23 Nov 2007 17:02:47 +0000 Subject: [PATCH] disambiguated pow call (again) --- vcg/complex/trimesh/update/normal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/update/normal.h b/vcg/complex/trimesh/update/normal.h index ce78a0fa..d9053ef4 100644 --- a/vcg/complex/trimesh/update/normal.h +++ b/vcg/complex/trimesh/update/normal.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.16 2007/11/23 15:42:11 cignoni +disambiguated pow call + Revision 1.15 2007/11/14 11:56:23 ganovelli added updating of vertex and face normals @@ -267,7 +270,7 @@ static void PerFaceMatrix(ComputeMeshType &m, const Matrix44 &mat, b if( !m.HasPerFaceNormal()) return; if(remove_scaling){ - scale = pow(mat33.Determinant(),1.0/(float)3.0); + scale = pow(mat33.Determinant(),ScalarType(1.0/3.0)); mat33[0][0]/=scale; mat33[1][1]/=scale; mat33[2][2]/=scale;