summaryrefslogtreecommitdiff
path: root/src/render.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-03-28 15:57:39 (GMT)
committerMarius Kintel <marius@kintel.net>2010-10-31 00:42:34 (GMT)
commit7468c940672b31e569cbb2310676fb1ac841e2d0 (patch)
tree1ddd374a0006e074695bd8638d1f5e59db6a3509 /src/render.cc
parent3396706e248d4baccf08707103deae378181b299 (diff)
Mostly completed test implementation of text-based CGALRenderer
Diffstat (limited to 'src/render.cc')
-rw-r--r--src/render.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/render.cc b/src/render.cc
index fb7dd59..4778083 100644
--- a/src/render.cc
+++ b/src/render.cc
@@ -23,8 +23,8 @@
*
*/
+#include "rendernode.h"
#include "module.h"
-#include "node.h"
#include "polyset.h"
#include "context.h"
#include "dxfdata.h"
@@ -49,25 +49,6 @@ public:
virtual AbstractNode *evaluate(const Context *ctx, const ModuleInstantiation *inst) const;
};
-class RenderNode : public AbstractNode
-{
-public:
- RenderNode(const ModuleInstantiation *mi) : AbstractNode(mi), convexity(1) { }
- virtual Response accept(const class State &state, Visitor &visitor) const {
- return visitor.visit(state, *this);
- }
- virtual std::string toString() const;
-
- int convexity;
-#ifdef ENABLE_CGAL
- virtual CGAL_Nef_polyhedron renderCSGMesh() const;
-#endif
- CSGTerm *render_csg_term(double m[20], QVector<CSGTerm*> *highlights, QVector<CSGTerm*> *background) const;
-#ifndef REMOVE_DUMP
- virtual QString dump(QString indent) const;
-#endif
-};
-
AbstractNode *RenderModule::evaluate(const Context *ctx, const ModuleInstantiation *inst) const
{
RenderNode *node = new RenderNode(inst);
contact: Jan Huwald // Impressum