summaryrefslogtreecommitdiff
path: root/src/export_png.cc
blob: 96e30fa3df151f9badd99eec7a061eef8875cc34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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