Commit 1ed0bbec authored by Martin Heistermann's avatar Martin Heistermann

BoxesNode: improve bounding box calculation, mention remaining issue

parent 1d530050
......@@ -98,9 +98,10 @@ void
BoxesNode::
boundingBox(Vec3d& _bbMin, Vec3d& _bbMax)
{
// FIXME: this assumes matrices to only consist of vectors up to unit length
for (const auto &be: elem_) {
_bbMax.maximize(be.pos + Vec3d(1.,1.,1.));
_bbMin.minimize(be.pos + Vec3d(-1., -1., -1.));
_bbMax.maximize(be.pos + Vec3d(scaleFactor_,scaleFactor_,scaleFactor_));
_bbMin.minimize(be.pos + Vec3d(-scaleFactor_, -scaleFactor_, -scaleFactor_));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment