summaryrefslogtreecommitdiff
path: root/src/svg.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-10-28 13:56:23 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-10-28 13:56:23 (GMT)
commit4ecd9fa8a4ceeb49ec62a50197f4fa4da9276796 (patch)
treec298e527789aeecb2c742044683471a48c9acf1a /src/svg.h
parent1dbcd7f4689fd0ed84997e2fb80a1b77e06f6b26 (diff)
refactor, cleanup, put code where it belongs, make simple logging class
Diffstat (limited to 'src/svg.h')
-rw-r--r--src/svg.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/svg.h b/src/svg.h
new file mode 100644
index 0000000..c7c7e1a
--- /dev/null
+++ b/src/svg.h
@@ -0,0 +1,34 @@
+#ifndef SVG_H_
+#define SVG_H_
+
+#include "cgal.h"
+#include <boost/algorithm/string.hpp>
+#include <map>
+
+namespace OpenSCAD {
+
+static int svg_cursor = 0;
+
+std::string svg_header();
+std::string svg_label(std::string s);
+std::string svg_border();
+std::string svg_axes();
+CGAL_Point_2e project_svg_3to2( CGAL_Point_3 p, CGAL_Iso_cuboid_3 bbox );
+CGAL_Point_2e project_svg_2to2( CGAL_Point_2e p, CGAL_Iso_rectangle_2e bbox );
+
+std::string dump_cgal_nef_polyhedron2_face_svg(
+ CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c1,
+ CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c2,
+ CGAL_Nef_polyhedron2::Explorer explorer,
+ std::string color,
+ bool mark,
+ CGAL_Iso_rectangle_2e bbox );
+std::string dump_svg( const CGAL_Nef_polyhedron2 &N );
+class NefPoly3_dumper_svg;
+std::string dump_svg( const CGAL_Nef_polyhedron3 &N );
+
+
+} // namespace
+
+#endif
+
contact: Jan Huwald // Impressum