From 3c452c89a8776feaca46cfc9a8411b50bbed7795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 14 Aug 2013 16:36:00 +0000 Subject: [PATCH] More double float fixes git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@929 fdac6126-5c0c-442c-9429-916003d36597 --- ...t3InterpolatingSubdividerLabsikGreinerT.hh | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh b/src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh index 4a35af75..9a0d55dc 100644 --- a/src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh +++ b/src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh @@ -136,22 +136,22 @@ public: weights_.resize(_max_valence); weights_[3].resize(4); - weights_[3][0] = +4.0/27; - weights_[3][1] = -5.0/27; - weights_[3][2] = +4.0/27; - weights_[3][3] = +8.0/9; + weights_[3][0] = real_t(+4.0/27); + weights_[3][1] = real_t(-5.0/27); + weights_[3][2] = real_t(+4.0/27); + weights_[3][3] = real_t(+8.0/9); weights_[4].resize(5); - weights_[4][0] = +2.0/9; - weights_[4][1] = -1.0/9; - weights_[4][2] = -1.0/9; - weights_[4][3] = +2.0/9; - weights_[4][4] = +7.0/9 ; + weights_[4][0] = real_t(+2.0/9); + weights_[4][1] = real_t(-1.0/9); + weights_[4][2] = real_t(-1.0/9); + weights_[4][3] = real_t(+2.0/9); + weights_[4][4] = real_t(+7.0/9); for(unsigned int K=5; K<_max_valence; ++K) { weights_[K].resize(K+1); - double aH = 2.0*cos(M_PI/K)/3.0; + real_t aH = 2.0*cos(M_PI/K)/3.0; weights_[K][K] = 1.0 - aH*aH; for(unsigned int i=0; i