summaryrefslogtreecommitdiff
path: root/src/surface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/surface.cc')
-rw-r--r--src/surface.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/surface.cc b/src/surface.cc
index 57b3f59..ddcd3a6 100644
--- a/src/surface.cc
+++ b/src/surface.cc
@@ -31,10 +31,8 @@
#include "dxftess.h"
#include "printutils.h"
#include "openscad.h" // handle_dep()
-#include "visitor.h"
#include <QFile>
-#include <sstream>
class SurfaceModule : public AbstractModule
{
@@ -46,15 +44,10 @@ public:
class SurfaceNode : public AbstractPolyNode
{
public:
- SurfaceNode(const ModuleInstantiation *mi) : AbstractPolyNode(mi) { }
- virtual Response accept(const class State &state, Visitor &visitor) const {
- return visitor.visit(state, *this);
- }
- virtual std::string toString() const;
-
QString filename;
bool center;
int convexity;
+ SurfaceNode(const ModuleInstantiation *mi) : AbstractPolyNode(mi) { }
virtual PolySet *render_polyset(render_mode_e mode) const;
virtual QString dump(QString indent) const;
};
@@ -215,13 +208,3 @@ QString SurfaceNode::dump(QString indent) const
return dump_cache;
}
-std::string SurfaceNode::toString() const
-{
- std::stringstream stream;
- stream << "n" << this->index() << ": ";
-
- stream << "surface(file = \"" << this->filename
- << "\", center = " << (this->center ? "true" : "false") << ")";
-
- return stream.str();
-}
contact: Jan Huwald // Impressum