diff options
author | Marius Kintel <marius@kintel.net> | 2014-01-14 01:57:49 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2014-01-14 01:57:49 (GMT) |
commit | 34ae2b8f68b73b91f5c4c522620aeed8e5a9e7b7 (patch) | |
tree | a6f44723e944da89ec34823cc5fddeeb41ad04a5 /src | |
parent | 23b04c3a9f1aba164d7429fee4669de18a32d9a8 (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.cc | 1 |
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++) { |