From fe2af353376e51db39f209e8537a884849535426 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 16 Oct 2015 16:26:52 +0200 Subject: [PATCH] fix overly conservative grid volume step size (reported by Guillaume Loubet) --- src/volume/gridvolume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)));