diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-30 01:41:52 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-30 01:41:52 (GMT) |
commit | 9259d57659f61e9e56942bb36125f605f8f3c338 (patch) | |
tree | 7affbbd5f524887c715fc2ecc7e8a3aaacb55ac8 /src/linearextrudenode.h | |
parent | 8c94c31dd2e5e85fc13d39fcd57b26df7afefe1e (diff) | |
parent | f3b3eaac687f0ba9a2a9b9382e7b605f106bf2b0 (diff) |
Merge branch 'master' into visitortests
Diffstat (limited to 'src/linearextrudenode.h')
-rw-r--r-- | src/linearextrudenode.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/linearextrudenode.h b/src/linearextrudenode.h new file mode 100644 index 0000000..503f1bd --- /dev/null +++ b/src/linearextrudenode.h @@ -0,0 +1,30 @@ +#ifndef LINEAREXTRUDENODE_H_ +#define LINEAREXTRUDENODE_H_ + +#include "node.h" +#include "visitor.h" + +class LinearExtrudeNode : public AbstractPolyNode +{ +public: + LinearExtrudeNode(const ModuleInstantiation *mi) : AbstractPolyNode(mi) { + convexity = slices = 0; + fn = fs = fa = height = twist = 0; + origin_x = origin_y = scale = 0; + center = has_twist = false; + } + virtual Response accept(class State &state, Visitor &visitor) const { + return visitor.visit(state, *this); + } + virtual std::string toString() const; + virtual std::string name() const { return "linear_extrude"; } + + int convexity, slices; + double fn, fs, fa, height, twist; + double origin_x, origin_y, scale; + bool center, has_twist; + std::string filename, layername; + virtual PolySet *evaluate_polyset(class PolySetEvaluator *) const; +}; + +#endif |