mirror of https://github.com/CGAL/cgal
fixing tests
This commit is contained in:
parent
bd11275ad1
commit
6e7587a863
|
|
@ -54,7 +54,7 @@ int main(void) {
|
||||||
|
|
||||||
// Expanding the tree; new nodes should be assigned the default value
|
// Expanding the tree; new nodes should be assigned the default value
|
||||||
tree.refine(10, 1);
|
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
|
// Everything but the root will have the default value
|
||||||
if (!tree.is_root(n)) assert(node_int_property[n] == 5);
|
if (!tree.is_root(n)) assert(node_int_property[n] == 5);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ using Point = Kernel::Point_3;
|
||||||
using FT = Kernel::FT;
|
using FT = Kernel::FT;
|
||||||
using Point_set = CGAL::Point_set_3<Point>;
|
using Point_set = CGAL::Point_set_3<Point>;
|
||||||
using Octree = CGAL::Octree<Kernel, Point_set, typename Point_set::Point_map>;
|
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) {
|
std::size_t count_jumps(Octree& octree) {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ using Kernel = CGAL::Simple_cartesian<double>;
|
||||||
using Point = Kernel::Point_3;
|
using Point = Kernel::Point_3;
|
||||||
using Point_set = CGAL::Point_set_3<Point>;
|
using Point_set = CGAL::Point_set_3<Point>;
|
||||||
using Octree = CGAL::Octree<Kernel, Point_set, typename Point_set::Point_map>;
|
using Octree = CGAL::Octree<Kernel, Point_set, typename Point_set::Point_map>;
|
||||||
using Preorder_traversal = CGAL::Orthtrees::Preorder_traversal<Octree>;
|
using Preorder_traversal = CGAL::Orthtrees::Preorder_traversal<typename Octree::Traits>;
|
||||||
using Level_traversal = CGAL::Orthtrees::Level_traversal<Octree>;
|
using Level_traversal = CGAL::Orthtrees::Level_traversal<typename Octree::Traits>;
|
||||||
|
|
||||||
bool test_preorder_1_node() {
|
bool test_preorder_1_node() {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue