summaryrefslogtreecommitdiff
path: root/src/svg.h
blob: 828dc391079ee8ddecb26bc403c14be75686b023 (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
#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