mirror of https://github.com/CGAL/cgal
Comment out the do_intersect tests
They caused a performance problem when used with the tweaked AABB_traits of Surface_mesh_segmentation.
This commit is contained in:
parent
649fabe67b
commit
54d8839ac9
|
|
@ -78,7 +78,7 @@ public:
|
||||||
case 2: // Left & right child both leaves
|
case 2: // Left & right child both leaves
|
||||||
{
|
{
|
||||||
//left child
|
//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());
|
intersection = intersection_obj(query, current.node->left_data());
|
||||||
if(intersection) {
|
if(intersection) {
|
||||||
FT ray_distance = boost::apply_visitor(param_visitor, intersection->first);
|
FT ray_distance = boost::apply_visitor(param_visitor, intersection->first);
|
||||||
|
|
@ -90,7 +90,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// right child
|
// 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());
|
intersection = intersection_obj(query, current.node->right_data());
|
||||||
if(intersection) {
|
if(intersection) {
|
||||||
FT ray_distance = boost::apply_visitor(param_visitor, intersection->first);
|
FT ray_distance = boost::apply_visitor(param_visitor, intersection->first);
|
||||||
|
|
@ -105,7 +105,7 @@ public:
|
||||||
case 3: // Left child leaf, right child inner node
|
case 3: // Left child leaf, right child inner node
|
||||||
{
|
{
|
||||||
//left child
|
//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());
|
intersection = intersection_obj(query, current.node->left_data());
|
||||||
if(intersection) {
|
if(intersection) {
|
||||||
FT ray_distance = boost::apply_visitor(param_visitor, intersection->first);
|
FT ray_distance = boost::apply_visitor(param_visitor, intersection->first);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue