From 29771d9f7bd482b36351e4fafbf8ea55e92f1fab Mon Sep 17 00:00:00 2001 From: Jackson Campolattaro Date: Thu, 2 Jul 2020 12:30:52 -0400 Subject: [PATCH] Implement Node.unsplit() --- Octree/include/CGAL/Octree/Node.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Octree/include/CGAL/Octree/Node.h b/Octree/include/CGAL/Octree/Node.h index 04342304d01..793d6e28d8c 100644 --- a/Octree/include/CGAL/Octree/Node.h +++ b/Octree/include/CGAL/Octree/Node.h @@ -33,12 +33,16 @@ namespace CGAL { m_depth = parent->m_depth + 1; } + // The default constructor is enough + void split() { } void unsplit() { + // std::unique_ptr handles this nicely + m_children.reset(); } };