2014-04-28 21:09:25 +04:00
|
|
|
#pragma once
|
2012-10-28 17:56:23 +04:00
|
|
|
|
|
|
|
#include "cgal.h"
|
|
|
|
#include <boost/algorithm/string.hpp>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace OpenSCAD {
|
|
|
|
|
2012-10-28 21:37:27 +04:00
|
|
|
// currently for debugging, not necessarily pretty or useful for users. (yet)
|
2012-10-28 17:56:23 +04:00
|
|
|
|
2012-10-28 22:08:41 +04:00
|
|
|
#define SVG_PXW 480
|
|
|
|
#define SVG_PXH 480
|
2012-10-28 23:22:04 +04:00
|
|
|
extern int svg_cursor_py;
|
|
|
|
extern int svg_px_width;
|
|
|
|
extern int svg_px_height;
|
2012-10-28 21:37:27 +04:00
|
|
|
|
2012-10-28 22:01:10 +04:00
|
|
|
std::string svg_header( int widthpx = SVG_PXW, int heightpx = SVG_PXH );
|
2012-10-28 21:37:27 +04:00
|
|
|
std::string svg_label( std::string s );
|
2012-10-28 17:56:23 +04:00
|
|
|
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
|