From 26e8652a248036a2964c4dc57ff01e4d38943e27 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 1 Jul 2014 06:20:23 +0000 Subject: [PATCH] Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType --- vcg/complex/algorithms/point_sampling.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcg/complex/algorithms/point_sampling.h b/vcg/complex/algorithms/point_sampling.h index abff20ec..17c024ac 100644 --- a/vcg/complex/algorithms/point_sampling.h +++ b/vcg/complex/algorithms/point_sampling.h @@ -1818,10 +1818,10 @@ void MontecarloSampling(MeshType &m, // the mesh that has to be sampled // template void PoissonSampling(MeshType &m, // the mesh that has to be sampled - std::vector &poissonSamples, // the vector that will contain the set of points + std::vector &poissonSamples, // the vector that will contain the set of points int sampleNum, // the desired number sample, if zero you must set the radius to the wanted value - float &radius, // the Poisson Disk Radius (used if sampleNum==0, setted if sampleNum!=0) - float radiusVariance=1) + typename MeshType::ScalarType &radius, // the Poisson Disk Radius (used if sampleNum==0, setted if sampleNum!=0) + typename MeshType::ScalarType radiusVariance=1) { typedef tri::TrivialSampler BaseSampler; @@ -1906,7 +1906,7 @@ void PoissonPruning(MeshType &m, // the mesh that has to be pruned template void PoissonPruningExact(MeshType &m, /// the mesh that has to be pruned std::vector &poissonSamples, /// the vector that will contain the chosen set of points - float & radius, + typename MeshType::ScalarType & radius, int sampleNum, float tolerance=0.04, int maxIter=20)