From 54d8839ac9f5cc60c630fe13db8daab236cbfb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20M=C3=B6ller?= Date: Thu, 26 Nov 2015 13:37:42 +0100 Subject: [PATCH] Comment out the do_intersect tests They caused a performance problem when used with the tweaked AABB_traits of Surface_mesh_segmentation. --- .../include/CGAL/internal/AABB_tree/AABB_ray_intersection.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h b/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h index e2b554d6832..8e8d88b9fc7 100644 --- a/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h +++ b/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h @@ -78,7 +78,7 @@ public: case 2: // Left & right child both leaves { //left child - if(!skip(current.node->left_data().id()) && do_intersect_obj(query, current.node->left_data())) { + if(!skip(current.node->left_data().id()) /* && do_intersect_obj(query, current.node->left_data()) */) { intersection = intersection_obj(query, current.node->left_data()); if(intersection) { FT ray_distance = boost::apply_visitor(param_visitor, intersection->first); @@ -90,7 +90,7 @@ public: } // right child - if(!skip(current.node->right_data().id()) && do_intersect_obj(query, current.node->right_data())) { + if(!skip(current.node->right_data().id()) /* && do_intersect_obj(query, current.node->right_data()) */) { intersection = intersection_obj(query, current.node->right_data()); if(intersection) { FT ray_distance = boost::apply_visitor(param_visitor, intersection->first); @@ -105,7 +105,7 @@ public: case 3: // Left child leaf, right child inner node { //left child - if(!skip(current.node->left_data().id()) && do_intersect_obj(query, current.node->left_data())) { + if(!skip(current.node->left_data().id()) /* && do_intersect_obj(query, current.node->left_data()) */) { intersection = intersection_obj(query, current.node->left_data()); if(intersection) { FT ray_distance = boost::apply_visitor(param_visitor, intersection->first);