summaryrefslogtreecommitdiff
path: root/src/cgaladv.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-11 02:35:30 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-11 02:35:30 (GMT)
commit5559ae9a6af459021c5b7ab4a823f491dce822a0 (patch)
treeccea074154b71c24ab0aee3150d4b07eef896a05 /src/cgaladv.cc
parent33a54b52f2c54c4ac66881d63b852b472f5589f1 (diff)
move transform from CGALEvaluator to Nef_polyhedron - reuse in resize(). also
move ZRemover code to cgalutils, also cleanup SVG code
Diffstat (limited to 'src/cgaladv.cc')
-rw-r--r--src/cgaladv.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgaladv.cc b/src/cgaladv.cc
index 073a908..276b59c 100644
--- a/src/cgaladv.cc
+++ b/src/cgaladv.cc
@@ -59,7 +59,7 @@ AbstractNode *CgaladvModule::evaluate(const Context *ctx, const ModuleInstantiat
argnames += "type", "level", "convexity";
if (type == RESIZE)
- argnames += "newsize";
+ argnames += "newsize", "auto";
Context c(ctx);
c.args(argnames, argexpr, inst->argnames, inst->argvalues);
@@ -90,6 +90,8 @@ AbstractNode *CgaladvModule::evaluate(const Context *ctx, const ModuleInstantiat
if ( v.size() >= 2 ) node->newsize[1] = v[1].toDouble();
if ( v.size() >= 3 ) node->newsize[2] = v[2].toDouble();
}
+ Value autosize = c.lookup_variable("auto");
+ node->autosize = autosize.toBool();
}
node->convexity = (int)convexity.toDouble();
contact: Jan Huwald // Impressum