mirror of https://github.com/vitalif/openscad
23 lines
707 B
C++
23 lines
707 B
C++
#pragma once
|
|
|
|
#include "node.h"
|
|
#include "visitor.h"
|
|
#include "value.h"
|
|
#include "clipper-utils.h"
|
|
|
|
class OffsetNode : public AbstractPolyNode
|
|
{
|
|
public:
|
|
OffsetNode(const ModuleInstantiation *mi) : AbstractPolyNode(mi), fn(0), fs(0), fa(0), delta(1), miter_limit(1000000.0), join_type(ClipperLib::jtRound) { }
|
|
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 "offset"; }
|
|
|
|
bool chamfer;
|
|
double fn, fs, fa, delta;
|
|
double miter_limit; // currently fixed high value to disable chamfers with jtMiter
|
|
ClipperLib::JoinType join_type;
|
|
};
|