From cdecee6279fbaea9c469bebf30f9901c018fb6d2 Mon Sep 17 00:00:00 2001 From: Jackson Campolattaro Date: Wed, 17 Jun 2020 15:36:05 -0400 Subject: [PATCH] Add recursive check to node equality operator --- Octree/include/CGAL/Octree/Octree_node.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Octree/include/CGAL/Octree/Octree_node.h b/Octree/include/CGAL/Octree/Octree_node.h index 5a22793ef2a..86f1459adf3 100644 --- a/Octree/include/CGAL/Octree/Octree_node.h +++ b/Octree/include/CGAL/Octree/Octree_node.h @@ -158,7 +158,9 @@ namespace CGAL { // Check all the children for (int i = 0; i < 8; ++i) { - // TODO + // If any child cell is different, they're not the same + if (!((*m_children)[i] == rhs[i])) + return false; } }