Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType
This commit is contained in:
parent
5349e55fed
commit
f5778fd180
|
@ -208,7 +208,7 @@ protected:
|
||||||
|
|
||||||
int CountInSphere(const Point3<ScalarType> &p, const ScalarType radius, std::vector<HashIterator> &inSphVec)
|
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;
|
vcg::Box3i bb;
|
||||||
this->BoxToIBox(b,bb);
|
this->BoxToIBox(b,bb);
|
||||||
ScalarType r2=radius*radius;
|
ScalarType r2=radius*radius;
|
||||||
|
@ -241,7 +241,7 @@ protected:
|
||||||
template<class DistanceFunctor>
|
template<class DistanceFunctor>
|
||||||
int RemoveInSphereNormal(const Point3<ScalarType> &p, const Point3<ScalarType> &n, DistanceFunctor &DF, const ScalarType radius)
|
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;
|
vcg::Box3i bb;
|
||||||
this->BoxToIBox(b,bb);
|
this->BoxToIBox(b,bb);
|
||||||
int cnt=0;
|
int cnt=0;
|
||||||
|
|
Loading…
Reference in New Issue