summaryrefslogtreecommitdiff
path: root/src/csgops.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/csgops.cc')
-rw-r--r--src/csgops.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/csgops.cc b/src/csgops.cc
index bddb5a0..c7251f8 100644
--- a/src/csgops.cc
+++ b/src/csgops.cc
@@ -53,23 +53,24 @@ AbstractNode *CsgModule::evaluate(const Context*, const ModuleInstantiation *ins
std::string CsgNode::toString() const
{
- std::stringstream stream;
+ return this->name() + "()";
+}
+std::string CsgNode::name() const
+{
switch (this->type) {
case CSG_TYPE_UNION:
- stream << "union()";
+ return "union";
break;
case CSG_TYPE_DIFFERENCE:
- stream << "difference()";
+ return "difference";
break;
case CSG_TYPE_INTERSECTION:
- stream << "intersection()";
+ return "intersection";
break;
default:
assert(false);
}
-
- return stream.str();
}
void register_builtin_csgops()
contact: Jan Huwald // Impressum