Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType

This commit is contained in:
Paolo Cignoni 2014-06-20 07:04:42 +00:00
parent 5349e55fed
commit f5778fd180
1 changed files with 232 additions and 232 deletions

View File

@ -208,7 +208,7 @@ protected:
int CountInSphere(const Point3<ScalarType> &p, const ScalarType radius, std::vector<HashIterator> &inSphVec)
{
Box3x b(p-Point3f(radius,radius,radius),p+Point3f(radius,radius,radius));
Box3x b(p-CoordType(radius,radius,radius),p+CoordType(radius,radius,radius));
vcg::Box3i bb;
this->BoxToIBox(b,bb);
ScalarType r2=radius*radius;
@ -241,7 +241,7 @@ protected:
template<class DistanceFunctor>
int RemoveInSphereNormal(const Point3<ScalarType> &p, const Point3<ScalarType> &n, DistanceFunctor &DF, const ScalarType radius)
{
Box3x b(p-Point3f(radius,radius,radius),p+Point3f(radius,radius,radius));
Box3x b(p-CoordType(radius,radius,radius),p+CoordType(radius,radius,radius));
vcg::Box3i bb;
this->BoxToIBox(b,bb);
int cnt=0;