summaryrefslogtreecommitdiff
path: root/src/export_png.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-24 03:35:04 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-24 03:35:04 (GMT)
commit2d59f7acf63d423f75753781b0b37c024dd3c80f (patch)
treeb4c60d45c4042cf6face4c96fe9d845f7423bfce /src/export_png.cc
parentcf32594c9e9bd728a72eeca8299e83e7616b30e9 (diff)
move png export to sep file to make compilation time bearable. expand stubs.
Diffstat (limited to 'src/export_png.cc')
-rw-r--r--src/export_png.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/export_png.cc b/src/export_png.cc
new file mode 100644
index 0000000..96e30fa
--- /dev/null
+++ b/src/export_png.cc
@@ -0,0 +1,29 @@
+#include "export.h"
+#include "printutils.h"
+#include "OffscreenView.h"
+#include "CsgInfo.h"
+#include <stdio.h>
+
+#ifdef ENABLE_CGAL
+
+void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, std::ostream &output)
+{
+ CsgInfo csgInfo;
+ try {
+ csgInfo.glview = new OffscreenView(512,512);
+ } catch (int error) {
+ fprintf(stderr,"Can't create OpenGL OffscreenView. Code: %i.\n", error);
+ }
+ output << "solid OpenSCAD_Model\n";
+ output << "endsolid OpenSCAD_Model\n";
+}
+
+void export_png_with_opencsg(CGAL_Nef_polyhedron *root_N, std::ostream &output)
+{
+ CsgInfo csgInfo;
+ output << "solid OpenSCAD_Model opencsg\n";
+ output << "endsolid OpenSCAD_Model opencsg\n";
+}
+
+
+#endif // ENABLE_CGAL
contact: Jan Huwald // Impressum