summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2014-01-14 01:57:49 (GMT)
committerMarius Kintel <marius@kintel.net>2014-01-14 01:57:49 (GMT)
commit34ae2b8f68b73b91f5c4c522620aeed8e5a9e7b7 (patch)
treea6f44723e944da89ec34823cc5fddeeb41ad04a5 /src
parent23b04c3a9f1aba164d7429fee4669de18a32d9a8 (diff)
Testcase and fix for a problem transforming an empty bbox with very small numbers in a transformation matrix
Diffstat (limited to 'src')
-rw-r--r--src/linalg.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/linalg.cc b/src/linalg.cc
index 6799055..274a70a 100644
--- a/src/linalg.cc
+++ b/src/linalg.cc
@@ -14,6 +14,7 @@
*/
BoundingBox operator*(const Transform3d &m, const BoundingBox &box)
{
+ if (box.isEmpty()) return box;
BoundingBox newbox;
Vector3d boxvec[2] = { box.min(), box.max() };
for (int k=0;k<2;k++) {
contact: Jan Huwald // Impressum