diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-30 01:11:28 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-30 01:11:28 (GMT) |
commit | bf3fb9634c44bcd28a4e2faede72052daa1f966c (patch) | |
tree | 50096d172fa5aa4df69dec7e0f34372e4dd441f5 /src/linearextrudenode.h | |
parent | ff915961b6fac11c535742857b5923514ce18e09 (diff) |
Renamed some files and classnames for clarification
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 |