fix overly conservative grid volume step size (reported by Guillaume Loubet)

metadata
Wenzel Jakob 2015-10-16 16:26:52 +02:00
parent eda8cb318d
commit fe2af35337
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ public:
) * Transform::translate(-Vector(m_dataAABB.min)) * m_worldToVolume;
m_stepSize = std::numeric_limits<Float>::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)));