fixing tests

This commit is contained in:
Sven Oesau 2024-02-02 11:56:29 +01:00
parent bd11275ad1
commit 6e7587a863
3 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ int main(void) {
// Expanding the tree; new nodes should be assigned the default value
tree.refine(10, 1);
for (auto n : tree.traverse<CGAL::Orthtrees::Preorder_traversal<Octree>>()) {
for (auto n : tree.traverse<CGAL::Orthtrees::Preorder_traversal<typename Octree::Traits>>()) {
// Everything but the root will have the default value
if (!tree.is_root(n)) assert(node_int_property[n] == 5);
}

View File

@ -15,7 +15,7 @@ using Point = Kernel::Point_3;
using FT = Kernel::FT;
using Point_set = CGAL::Point_set_3<Point>;
using Octree = CGAL::Octree<Kernel, Point_set, typename Point_set::Point_map>;
using Leaves_traversal = CGAL::Orthtrees::Leaves_traversal<Octree>;
using Leaves_traversal = CGAL::Orthtrees::Leaves_traversal<typename Octree::Traits>;
std::size_t count_jumps(Octree& octree) {

View File

@ -12,8 +12,8 @@ using Kernel = CGAL::Simple_cartesian<double>;
using Point = Kernel::Point_3;
using Point_set = CGAL::Point_set_3<Point>;
using Octree = CGAL::Octree<Kernel, Point_set, typename Point_set::Point_map>;
using Preorder_traversal = CGAL::Orthtrees::Preorder_traversal<Octree>;
using Level_traversal = CGAL::Orthtrees::Level_traversal<Octree>;
using Preorder_traversal = CGAL::Orthtrees::Preorder_traversal<typename Octree::Traits>;
using Level_traversal = CGAL::Orthtrees::Level_traversal<typename Octree::Traits>;
bool test_preorder_1_node() {