2011-09-30 05:11:28 +04:00
|
|
|
#ifndef ROTATEEXTRUDENODE_H_
|
|
|
|
#define ROTATEEXTRUDENODE_H_
|
2010-03-02 21:22:31 +03:00
|
|
|
|
|
|
|
#include "node.h"
|
|
|
|
#include "visitor.h"
|
2011-11-06 22:18:59 +04:00
|
|
|
#include "value.h"
|
2010-03-02 21:22:31 +03:00
|
|
|
|
2011-09-30 05:11:28 +04:00
|
|
|
class RotateExtrudeNode : public AbstractPolyNode
|
2010-03-02 21:22:31 +03:00
|
|
|
{
|
|
|
|
public:
|
2011-09-30 05:11:28 +04:00
|
|
|
RotateExtrudeNode(const ModuleInstantiation *mi) : AbstractPolyNode(mi) {
|
2010-03-02 21:22:31 +03:00
|
|
|
convexity = 0;
|
|
|
|
fn = fs = fa = 0;
|
|
|
|
origin_x = origin_y = scale = 0;
|
|
|
|
}
|
2010-08-28 19:34:22 +04:00
|
|
|
virtual Response accept(class State &state, Visitor &visitor) const {
|
2010-03-02 21:22:31 +03:00
|
|
|
return visitor.visit(state, *this);
|
|
|
|
}
|
|
|
|
virtual std::string toString() const;
|
2010-08-28 23:21:44 +04:00
|
|
|
virtual std::string name() const { return "rotate_extrude"; }
|
2010-03-02 21:22:31 +03:00
|
|
|
|
|
|
|
int convexity;
|
|
|
|
double fn, fs, fa;
|
|
|
|
double origin_x, origin_y, scale;
|
2011-11-06 22:18:59 +04:00
|
|
|
Filename filename;
|
|
|
|
std::string layername;
|
2011-09-09 07:53:05 +04:00
|
|
|
virtual PolySet *evaluate_polyset(class PolySetEvaluator *) const;
|
2010-03-02 21:22:31 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|