diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-11-22 02:28:35 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-11-22 02:28:35 (GMT) |
commit | 03442e31241a859701c9efaf7525c9752444fa9f (patch) | |
tree | 6917a22ca0430b8f21134f12538f8ddf3d9dfd0b /tests/cgalpngtest.cc | |
parent | 4843022bf4755d7fafe58faee430a6f62f51ca8f (diff) |
fixing GLX setup
Diffstat (limited to 'tests/cgalpngtest.cc')
-rw-r--r-- | tests/cgalpngtest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cgalpngtest.cc b/tests/cgalpngtest.cc index bfa92da..cc747fb 100644 --- a/tests/cgalpngtest.cc +++ b/tests/cgalpngtest.cc @@ -190,16 +190,19 @@ int main(int argc, char **argv) BoundingBox bbox; if (cgalRenderer.polyhedron) { + std::cout << "polyhedron\n" ; CGAL::Bbox_3 cgalbbox = cgalRenderer.polyhedron->bbox(); bbox = BoundingBox(Vector3d(cgalbbox.xmin(), cgalbbox.ymin(), cgalbbox.zmin()), Vector3d(cgalbbox.xmax(), cgalbbox.ymax(), cgalbbox.zmax())); } else if (cgalRenderer.polyset) { + std::cout << "polyset\n" ; bbox = cgalRenderer.polyset->getBoundingBox(); } Vector3d center = getBoundingCenter(bbox); double radius = getBoundingRadius(bbox); + std::cout << "radius: " << radius << "\n"; Vector3d cameradir(1, 1, -0.5); Vector3d camerapos = center - radius*2*cameradir; |