diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-03-03 16:11:56 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-03-03 16:11:56 (GMT) |
commit | bfae32fe9909446cb4254fc5a5d953227736575a (patch) | |
tree | 14dcbdf0077765645fa9e9b65b7d26e9d2f92b20 /src/export_png.cc | |
parent | 0f6b76cf2125828ce11ec9f6f47cfc26860d3571 (diff) |
remove boost::variant stuff. trim code. add 'vector cam' cmdline option
Diffstat (limited to 'src/export_png.cc')
-rw-r--r-- | src/export_png.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/export_png.cc b/src/export_png.cc index 8a6dd1d..bedc230 100644 --- a/src/export_png.cc +++ b/src/export_png.cc @@ -35,13 +35,13 @@ void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, Camera &cam, std::ostream bbox = cgalRenderer.polyset->getBoundingBox(); } - if (cam.type() == Camera::NONE) { + if (cam.type == Camera::NONE) { VectorCamera vcam; vcam.center = getBoundingCenter(bbox); double radius = getBoundingRadius(bbox); Vector3d cameradir(1, 1, -0.5); vcam.eye = vcam.center - radius*2*cameradir; - cam.value = vcam; + cam.set(vcam); } //std::cerr << center << "\n"; @@ -78,7 +78,7 @@ void export_png_with_opencsg(Tree &tree, Camera &cam, std::ostream &output) OpenCSGRenderer opencsgRenderer(csgInfo.root_chain, csgInfo.highlights_chain, csgInfo.background_chain, csgInfo.glview->shaderinfo); - if (cam.type() == Camera::NONE) { + if (cam.type == Camera::NONE) { VectorCamera vcam; vcam.center << 0,0,0; double radius = 1.0; @@ -89,7 +89,7 @@ void export_png_with_opencsg(Tree &tree, Camera &cam, std::ostream &output) } Vector3d cameradir(1, 1, -0.5); vcam.eye = vcam.center - radius*1.8*cameradir; - cam.value = vcam; + cam.set(vcam); } csgInfo.glview->setCamera( cam ); |