Skip to content

Commit

Permalink
Implement Node.split()
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jul 2, 2020
1 parent 01504a5 commit f10b275
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Octree/include/CGAL/Octree/Node.h
Expand Up @@ -42,6 +42,11 @@ namespace CGAL {

void split() {

m_children = std::make_unique<Child_list>();
for (int child_id = 0; child_id < 8; child_id++) {

(*m_children)[child_id] = {m_value, this};
}
}

void unsplit() {
Expand Down

0 comments on commit f10b275

Please sign in to comment.