diff --git a/src/volume/gridvolume.cpp b/src/volume/gridvolume.cpp index 3b5c50cd..bbe683c4 100644 --- a/src/volume/gridvolume.cpp +++ b/src/volume/gridvolume.cpp @@ -195,7 +195,7 @@ public: ) * Transform::translate(-Vector(m_dataAABB.min)) * m_worldToVolume; m_stepSize = std::numeric_limits::infinity(); for (int i=0; i<3; ++i) - m_stepSize = 0.5f * std::min(m_stepSize, extents[i] / (Float) (m_res[i]-1)); + m_stepSize = std::min(m_stepSize, 0.5f * extents[i] / (Float) (m_res[i]-1)); m_aabb.reset(); for (int i=0; i<8; ++i) m_aabb.expandBy(m_volumeToWorld(m_dataAABB.getCorner(i)));