summaryrefslogtreecommitdiff
path: root/src/svg.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-28 02:42:20 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-28 02:42:20 (GMT)
commit1e64dddf1ea30282c89de7f35854a68614234652 (patch)
tree165d37c1c66f6ff79d48c74794238b3f0bed09da /src/svg.h
parent5c779159c208ca3d88c88479ab29f9cd66574859 (diff)
parentd0856efe6da545693f9c50a8a2514a9f999ab5ef (diff)
Merge branch 'master' of github.com:openscad/openscad into issue159
Diffstat (limited to 'src/svg.h')
-rw-r--r--src/svg.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/svg.h b/src/svg.h
new file mode 100644
index 0000000..828dc39
--- /dev/null
+++ b/src/svg.h
@@ -0,0 +1,28 @@
+#ifndef SVG_H_
+#define SVG_H_
+
+#include "cgal.h"
+#include <boost/algorithm/string.hpp>
+#include <map>
+
+namespace OpenSCAD {
+
+// currently for debugging, not necessarily pretty or useful for users. (yet)
+
+#define SVG_PXW 480
+#define SVG_PXH 480
+extern int svg_cursor_py;
+extern int svg_px_width;
+extern int svg_px_height;
+
+std::string svg_header( int widthpx = SVG_PXW, int heightpx = SVG_PXH );
+std::string svg_label( std::string s );
+std::string svg_border();
+std::string svg_axes();
+std::string dump_svg( const CGAL_Nef_polyhedron2 &N );
+std::string dump_svg( const CGAL_Nef_polyhedron3 &N );
+
+} // namespace
+
+#endif
+
contact: Jan Huwald // Impressum