From 44624b9885b0b6c6292a390bb3ae6a757d898c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 24 Jul 2013 11:25:42 +0000 Subject: [PATCH] Wrong variable type git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@874 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Tools/Decimater/MixedDecimaterT.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Tools/Decimater/MixedDecimaterT.cc b/src/OpenMesh/Tools/Decimater/MixedDecimaterT.cc index 17f93b9b..a66c896d 100644 --- a/src/OpenMesh/Tools/Decimater/MixedDecimaterT.cc +++ b/src/OpenMesh/Tools/Decimater/MixedDecimaterT.cc @@ -136,7 +136,7 @@ size_t MixedDecimaterT::decimate_to_faces(const size_t _n_vertices,const size_t samples = int (double( min) + double(i)/(double(steps)-1.0) * (max-2) ) ; // We won't allow 1 here, as this is the last step in the incremental part - double decimaterLevel = (double(i + 1)) * _mc_factor / (double(steps) ); + float decimaterLevel = (double(i + 1)) * _mc_factor / (double(steps) ); this->set_samples(samples); r_collapses += McDecimaterT::decimate_constraints_only(decimaterLevel);