summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-09-12 22:40:51 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-09-12 22:40:51 (GMT)
commitf5f06c8e976ca45aebea42fe8c04bf7404357ac8 (patch)
tree8d0cdd2698e7806c1b12cc49e743b561e1082961 /src/node.h
parent007c40848db9efd704694f2e7596cabed80da50f (diff)
parent5ac9162f1c67fd21737ead11d7ebc638bf4eef5f (diff)
merge
Merge remote branch 'upstream/visitor' into visitortests Conflicts: src/export.cc src/openscad.cc src/polyset.cc src/transform.cc tests/CMakeLists.txt tests/FindGLEW.cmake tests/csgtermtest.cc
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/node.h b/src/node.h
index a3e1cad..9f25627 100644
--- a/src/node.h
+++ b/src/node.h
@@ -36,6 +36,8 @@ public:
overloaded to provide specialization for e.g. CSG nodes, primitive nodes etc.
Used for human-readable output. */
virtual std::string name() const;
+ /*! Should return a PolySet of the given geometry. Returns NULL if smth. goes wrong */
+ virtual class PolySet *evaluate_polyset(class PolySetEvaluator *) const { return NULL; }
// FIXME: Make return value a reference
const std::vector<AbstractNode*> &getChildren() const {
@@ -79,10 +81,6 @@ public:
RENDER_CGAL,
RENDER_OPENCSG
};
- /*! Should return a PolySet of the given geometry. It's normal to return an
- empty PolySet if smth. is wrong, but don't return NULL unless we change the calling
- strategy for this method. */
- virtual class PolySet *evaluate_polyset(render_mode_e mode, class PolySetEvaluator *evaluator) const = 0;
};
std::ostream &operator<<(std::ostream &stream, const AbstractNode &node);
contact: Jan Huwald // Impressum