From 5ca65805de57ac160304d2788491be433b04e12e Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 5 Sep 2011 23:06:35 +0200 Subject: Reenabled minkowski sums diff --git a/src/cgaladvnode.h b/src/cgaladvnode.h new file mode 100644 index 0000000..a3f8bea --- /dev/null +++ b/src/cgaladvnode.h @@ -0,0 +1,34 @@ +#ifndef CGALADVNODE_H_ +#define CGALADVNODE_H_ + +#include "node.h" +#include "visitor.h" +#include "value.h" + +enum cgaladv_type_e { + MINKOWSKI, + GLIDE, + SUBDIV, + HULL +}; + +class CgaladvNode : public AbstractNode +{ +public: + CgaladvNode(const ModuleInstantiation *mi, cgaladv_type_e type) : AbstractNode(mi), type(type) { + convexity = 1; + } + virtual ~CgaladvNode() { } + virtual Response accept(class State &state, Visitor &visitor) const { + return visitor.visit(state, *this); + } + virtual std::string toString() const; + virtual std::string name() const; + + Value path; + std::string subdiv_type; + int convexity, level; + cgaladv_type_e type; +}; + +#endif -- cgit v0.10.1