diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-24 05:05:15 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-24 05:05:15 (GMT) |
commit | e80d847e3d9249d22bf70f257df7b2130487b211 (patch) | |
tree | b9a17f3f8b66da2c303907833ead5116f55300d4 /src/export_png.cc | |
parent | d847039c96641f564d805c57824bad422d68ec0d (diff) |
stubs to enable passing ostream to png-writing functions
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 aa23ee7..16e2a69 100644 --- a/src/export_png.cc +++ b/src/export_png.cc @@ -38,12 +38,12 @@ void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, std::ostream &output) Vector3d camerapos = center - radius*2*cameradir; output << center << "\n"; output << radius << "\n"; -/* + csgInfo.glview->setCamera(camerapos, center); csgInfo.glview->setRenderer(&cgalRenderer); - csgInfo.glview->paintGL(); - csgInfo.glview->save(outfile); -*/ + csgInfo.glview->paintGL(); + csgInfo.glview->save("test.png"); + output << "solid OpenSCAD_Model\n"; output << "endsolid OpenSCAD_Model\n"; } |