summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-11-03 18:26:06 (GMT)
committerMarius Kintel <marius@kintel.net>2010-11-03 18:26:06 (GMT)
commit264608981cfcd65de8e64af8d97648a315d52bc1 (patch)
tree486fed9c5c750d0e0b8c75290d315632db22c578 /src/openscad.cc
parent4423c010301b8a94addee0ab0b3561023bba7290 (diff)
Fixed some issues with PolySetRenderer, causing e.g. extrusions to fail in OpenCSG mode
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index ba4d574..4f63bb4 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -248,7 +248,6 @@ int main(int argc, char **argv)
QHash<std::string, CGAL_Nef_polyhedron> cache;
CGALRenderer cgalrenderer(cache, tree);
PolySetCGALRenderer psrenderer(cgalrenderer);
- PolySetRenderer::setRenderer(&psrenderer);
if (stl_output_file || off_output_file || dxf_output_file)
{
@@ -300,10 +299,8 @@ int main(int argc, char **argv)
AbstractNode::resetIndexCounter();
root_node = root_module->evaluate(&root_ctx, &root_inst);
- Tree tree(root_node);
- QHash<std::string, CGAL_Nef_polyhedron> cache;
- CGALRenderer renderer(cache, tree);
- CGAL_Nef_polyhedron root_N = renderer.renderCGALMesh(*tree.root());
+ tree.setRoot(root_node);
+ CGAL_Nef_polyhedron root_N = cgalrenderer.renderCGALMesh(*tree.root());
QDir::setCurrent(original_path.absolutePath());
contact: Jan Huwald // Impressum