summaryrefslogtreecommitdiff
path: root/src/export_png.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-25 01:04:50 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-25 01:04:50 (GMT)
commit8738cdc03451803014ca84f8614bdff1ff393ca9 (patch)
treedb932377ea156d9caf5f47fec3b7bb9466273fe9 /src/export_png.cc
parenteb2c0d38f22f781cf59ca7078bfec260148ca584 (diff)
split out axes functions. begin to split out opencsg pre-rendering
Diffstat (limited to 'src/export_png.cc')
-rw-r--r--src/export_png.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/export_png.cc b/src/export_png.cc
index 2d6a4a2..179278a 100644
--- a/src/export_png.cc
+++ b/src/export_png.cc
@@ -49,7 +49,12 @@ void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, std::ostream &output)
void export_png_with_opencsg(CGAL_Nef_polyhedron *root_N, std::ostream &output)
{
CsgInfo csgInfo;
- PRINT("not implemented: solid OpenSCAD_Model opencsg png export\n");
+ try {
+ csgInfo.glview = new OffscreenView(512,512);
+ } catch (int error) {
+ fprintf(stderr,"Can't create OpenGL OffscreenView. Code: %i.\n", error);
+ return;
+ }
}
contact: Jan Huwald // Impressum