From 684b9eceb7b9cc3fdf734e34307b4d3987f1b462 Mon Sep 17 00:00:00 2001 From: don bright Date: Sat, 15 Oct 2011 16:44:52 -0500 Subject: fix bizarre win32 syntax error with eigen alignedbox 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; +} + + -- cgit v0.10.1