diff options
author | Brad Pitcher <bradpitcher@gmail.com> | 2011-11-01 17:15:35 (GMT) |
---|---|---|
committer | Brad Pitcher <bradpitcher@gmail.com> | 2011-11-01 17:15:35 (GMT) |
commit | e2caf3726d68ff1fef63113519049abffc0563af (patch) | |
tree | 6558c6f03ccc21e7138d23861f80e8d97b09e60e /tests/bboxhelp.cc | |
parent | 7541854212d6c1223e015faf55a6ca0657a1c184 (diff) | |
parent | cb56f700b1b0f4ae589da62a5fd1d4e368deb604 (diff) |
merge master
Diffstat (limited to 'tests/bboxhelp.cc')
-rw-r--r-- | tests/bboxhelp.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bboxhelp.cc b/tests/bboxhelp.cc new file mode 100644 index 0000000..b70ddcf --- /dev/null +++ b/tests/bboxhelp.cc @@ -0,0 +1,21 @@ +/* + Work around bugs in MSVC compiler with Eigen AlignmentBox + bbox.min and bbox.max will fail with Syntax Errors if placed inside + of cgalpngtest.cc +*/ + +#include "linalg.h" + +Vector3d getBoundingCenter(BoundingBox bbox) +{ + Vector3d center = (bbox.min() + bbox.max()) / 2; + return center; // Vector3d(0,0,0); +} + +double getBoundingRadius(BoundingBox bbox) +{ + double radius = (bbox.max() - bbox.min()).norm() / 2; + return radius; // 0; +} + + |