Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType
This commit is contained in:
parent
cf856d0a6b
commit
5e910a0058
|
|
@ -107,10 +107,9 @@ public:
|
||||||
template <class OtherScalarType>
|
template <class OtherScalarType>
|
||||||
inline void IPiToPf(const Point3i & pi, Point3<OtherScalarType> &p ) const
|
inline void IPiToPf(const Point3i & pi, Point3<OtherScalarType> &p ) const
|
||||||
{
|
{
|
||||||
p[0] = ((OtherScalarType)pi[0])*voxel[0];
|
p[0] = bbox.min[0] + ((OtherScalarType)pi[0])*voxel[0];
|
||||||
p[1] = ((OtherScalarType)pi[1])*voxel[1];
|
p[1] = bbox.min[1] + ((OtherScalarType)pi[1])*voxel[1];
|
||||||
p[2] = ((OtherScalarType)pi[2])*voxel[2];
|
p[2] = bbox.min[2] + ((OtherScalarType)pi[2])*voxel[2];
|
||||||
p += bbox.min;
|
|
||||||
}
|
}
|
||||||
/* Returns the matrix that applied to a point in grid space
|
/* Returns the matrix that applied to a point in grid space
|
||||||
* transforms it in the original space.
|
* transforms it in the original space.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue