Skip to content

Commit

Permalink
avoid recursion in csg tree (#1086)
Browse files Browse the repository at this point in the history
* csg_tree.cpp: avoid recursion

* fix cache transform

* fix compiler error

* cleanup

* fixed simple bug

* disable flaky CondensedMatter16

* disable properly

* documentation and cleanup

* address some comments

* make finalize explicit

* rename children to destination

* some simplification

* added recursive pseudocode

* simplify
  • Loading branch information
pca006132 authored Dec 3, 2024
1 parent 8556840 commit fb29e85
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 301 deletions.
2 changes: 1 addition & 1 deletion src/constructors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ Manifold Manifold::Compose(const std::vector<Manifold>& manifolds) {
for (const auto& manifold : manifolds) {
children.push_back(manifold.pNode_->ToLeafNode());
}
return Manifold(std::make_shared<Impl>(CsgLeafNode::Compose(children)));
return Manifold(CsgLeafNode::Compose(children));
}

/**
Expand Down
Loading

0 comments on commit fb29e85

Please sign in to comment.