summaryrefslogtreecommitdiff
path: root/openscad.h
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-24 20:50:30 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-24 20:50:30 (GMT)
commitc66c51ce1e97c146a6f05cafdea213f880760b83 (patch)
tree91d7d1af4bf8fdd6530e66beb3fe3759fb2d9843 /openscad.h
parent92debc11399fd8cf856913508edaa8154d495ca4 (diff)
Clifford Wolf:
Added dxf dimension function (still incomplete) git-svn-id: http://svn.clifford.at/openscad/trunk@73 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.h')
-rw-r--r--openscad.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/openscad.h b/openscad.h
index 5e56618..b6a3a1d 100644
--- a/openscad.h
+++ b/openscad.h
@@ -285,7 +285,7 @@ public:
class BuiltinFunction : public AbstractFunction
{
public:
- typedef Value (*eval_func_t)(const QVector<Value> &args);
+ typedef Value (*eval_func_t)(const QVector<QString> &argnames, const QVector<Value> &args);
eval_func_t eval_func;
BuiltinFunction(eval_func_t f) : eval_func(f) { }
@@ -312,6 +312,7 @@ public:
extern QHash<QString, AbstractFunction*> builtin_functions;
extern void initialize_builtin_functions();
+extern void initialize_builtin_dxf_dim();
extern void destroy_builtin_functions();
class AbstractModule
@@ -419,9 +420,22 @@ public:
bool is_closed, is_inner;
Path() : is_closed(false), is_inner(false) { }
};
+ struct Dim {
+ unsigned int type;
+ double coords[7][2];
+ double angle;
+ QString name;
+ Dim() {
+ for (int i = 0; i < 7; i++)
+ for (int j = 0; j < 2; j++)
+ coords[i][j] = 0;
+ type = 0;
+ }
+ };
QList<Point> points;
QList<Path> paths;
+ QList<Dim> dims;
DxfData(double fn, double fs, double fa, QString filename, QString layername = QString(), double xorigin = 0.0, double yorigin = 0.0, double scale = 1.0);
contact: Jan Huwald // Impressum