diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-26 06:09:37 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-26 06:09:37 (GMT) |
commit | af4333a669eacc2cafc8274e23f58415e634477b (patch) | |
tree | 67d54465e838a224e16e262ebe8a5dfc0fde95f1 /src/export_png.cc | |
parent | 544a8e5b799f5dd0a35d650c00db10074104650a (diff) |
refactor to reduce duplicate code. enable ostream save from OffscreenView
Diffstat (limited to 'src/export_png.cc')
-rw-r--r-- | src/export_png.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/export_png.cc b/src/export_png.cc index d983bc1..fb31917 100644 --- a/src/export_png.cc +++ b/src/export_png.cc @@ -43,10 +43,7 @@ void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, std::ostream &output) csgInfo.glview->setCamera(camerapos, center); csgInfo.glview->setRenderer(&cgalRenderer); csgInfo.glview->paintGL(); - csgInfo.glview->save("test.png"); - - output << "solid OpenSCAD_Model\n"; - output << "endsolid OpenSCAD_Model\n"; + csgInfo.glview->save(output); } void export_png_with_opencsg(CGAL_Nef_polyhedron *root_N, std::ostream &output) |