diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-10-18 08:50:01 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-10-18 08:50:01 (GMT) |
commit | 0b61257ca8367f2b0957982b16c333bc3bbbe1ba (patch) | |
tree | a2992f4961de546f217a75cd290e6ffe08c9d629 /openscad.h | |
parent | a6b4efc78fed90714ed41cc4a589c67ae995693a (diff) |
Clifford Wolf:
Added command line mode (stl export only)
git-svn-id: http://svn.clifford.at/openscad/trunk@106 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.h')
-rw-r--r-- | openscad.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -30,6 +30,7 @@ #include <QCache> #include <QVector> #include <QMainWindow> +#include <QProgressDialog> #include <QSplitter> #include <QTextEdit> #include <QLineEdit> @@ -751,6 +752,7 @@ private slots: void actionDisplayAST(); void actionDisplayCSGTree(); void actionDisplayCSGProducts(); + void actionExportSTLorOFF(bool stl_mode); void actionExportSTL(); void actionExportOFF(); @@ -800,6 +802,12 @@ extern int get_fragments_from_r(double r, double fn, double fs, double fa); extern QPointer<MainWindow> current_win; +#ifdef ENABLE_CGAL +void export_stl(CGAL_Nef_polyhedron *root_N, QString filename, QProgressDialog *pd); +void export_off(CGAL_Nef_polyhedron *root_N, QString filename, QProgressDialog *pd); +#endif +extern void handle_dep(QString filename); + #define PRINT(_msg) do { if (current_win.isNull()) fprintf(stderr, "%s\n", QString(_msg).toAscii().data()); else current_win->console->append(_msg); } while (0) #define PRINTF(_fmt, ...) do { QString _m; _m.sprintf(_fmt, ##__VA_ARGS__); PRINT(_m); } while (0) #define PRINTA(_fmt, ...) do { QString _m = QString(_fmt).arg(__VA_ARGS__); PRINT(_m); } while (0) |