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

This commit is contained in:
Paolo Cignoni 2014-07-01 10:08:30 +00:00
parent cf856d0a6b
commit 5e910a0058
2 changed files with 4 additions and 5 deletions

View File

@ -107,10 +107,9 @@ public:
template <class OtherScalarType>
inline void IPiToPf(const Point3i & pi, Point3<OtherScalarType> &p ) const
{
p[0] = ((OtherScalarType)pi[0])*voxel[0];
p[1] = ((OtherScalarType)pi[1])*voxel[1];
p[2] = ((OtherScalarType)pi[2])*voxel[2];
p += bbox.min;
p[0] = bbox.min[0] + ((OtherScalarType)pi[0])*voxel[0];
p[1] = bbox.min[1] + ((OtherScalarType)pi[1])*voxel[1];
p[2] = bbox.min[2] + ((OtherScalarType)pi[2])*voxel[2];
}
/* Returns the matrix that applied to a point in grid space
* transforms it in the original space.