diff options
author | Torsten Paul <Torsten.Paul@gmx.de> | 2013-12-27 22:48:15 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-12-27 22:48:15 (GMT) |
commit | b49f51dab34fa633bd18fa8adb6958ab40887830 (patch) | |
tree | 8f7c25545187edd9bc94683003277e913f59e8f2 /src/linearextrude.cc | |
parent | 68de0ab680c46d1d6ea7ea0048843f2beb8500d3 (diff) |
Moved get_fragments_from_r into Calc
Diffstat (limited to 'src/linearextrude.cc')
-rw-r--r-- | src/linearextrude.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linearextrude.cc b/src/linearextrude.cc index c5d4529..1812504 100644 --- a/src/linearextrude.cc +++ b/src/linearextrude.cc @@ -32,7 +32,7 @@ #include "fileutils.h" #include "builtin.h" #include "PolySetEvaluator.h" -#include "openscad.h" // get_fragments_from_r() +#include "calc.h" #include "mathc99.h" #include <sstream> @@ -113,7 +113,7 @@ AbstractNode *LinearExtrudeModule::instantiate(const Context *ctx, const ModuleI if (slices.type() == Value::NUMBER) { node->slices = (int)slices.toDouble(); } else { - node->slices = (int)fmax(2, fabs(get_fragments_from_r(node->height, + node->slices = (int)fmax(2, fabs(Calc::get_fragments_from_r(node->height, node->fn, node->fs, node->fa) * node->twist / 360)); } node->has_twist = true; |