From 5de12ccbf3ac7e2a60ed727af4098a7aedf6d07a Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 23 Nov 2007 15:42:11 +0000 Subject: [PATCH] disambiguated pow call --- vcg/complex/trimesh/update/normal.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/update/normal.h b/vcg/complex/trimesh/update/normal.h index 745abd72..ce78a0fa 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.15 2007/11/14 11:56:23 ganovelli +added updating of vertex and face normals + Revision 1.14 2007/07/12 23:11:35 cignoni added the missing PerVertexNormalizedPerFaceNormalized @@ -243,7 +246,7 @@ static void PerVertexMatrix(ComputeMeshType &m, const Matrix44 &mat, if( !m.HasPerVertexNormal()) return; if(remove_scaling){ - scale = pow(mat33.Determinant(),1/(float)3.0); + scale = pow(mat33.Determinant(),(ScalarType)(1.0/3.0)); mat33[0][0]/=scale; mat33[1][1]/=scale; mat33[2][2]/=scale; @@ -264,7 +267,7 @@ static void PerFaceMatrix(ComputeMeshType &m, const Matrix44 &mat, b if( !m.HasPerFaceNormal()) return; if(remove_scaling){ - scale = pow(mat33.Determinant(),1/(float)3.0); + scale = pow(mat33.Determinant(),1.0/(float)3.0); mat33[0][0]/=scale; mat33[1][1]/=scale; mat33[2][2]/=scale;