Remove parameter as it is not used internally

This commit is contained in:
Andreas Fabri 2022-06-01 12:48:17 +01:00
parent 89ef292122
commit f23deb3b1d
1 changed files with 6 additions and 9 deletions

View File

@ -577,8 +577,7 @@ public:
ConstPrimitiveIterator beyond, ConstPrimitiveIterator beyond,
const std::size_t range, const std::size_t range,
const ComputeBbox& compute_bbox, const ComputeBbox& compute_bbox,
const SplitPrimitives& split_primitives, const SplitPrimitives& split_primitives);
const AABBTraits&);
public: public:
// returns a point which must be on one primitive // returns a point which must be on one primitive
@ -794,8 +793,7 @@ public:
ConstPrimitiveIterator beyond, ConstPrimitiveIterator beyond,
const std::size_t range, const std::size_t range,
const ComputeBbox& compute_bbox, const ComputeBbox& compute_bbox,
const SplitPrimitives& split_primitives, const SplitPrimitives& split_primitives)
const Tr& traits)
{ {
node.set_bbox(compute_bbox(first, beyond)); node.set_bbox(compute_bbox(first, beyond));
@ -809,13 +807,13 @@ public:
break; break;
case 3: case 3:
node.set_children(*first, new_node()); node.set_children(*first, new_node());
expand(node.right_child(), first+1, beyond, 2, compute_bbox, split_primitives, traits); expand(node.right_child(), first+1, beyond, 2, compute_bbox, split_primitives);
break; break;
default: default:
const std::size_t new_range = range/2; const std::size_t new_range = range/2;
node.set_children(new_node(), new_node()); node.set_children(new_node(), new_node());
expand(node.left_child(), first, first + new_range, new_range, compute_bbox, split_primitives, traits); expand(node.left_child(), first, first + new_range, new_range, compute_bbox, split_primitives);
expand(node.right_child(), first + new_range, beyond, range - new_range, compute_bbox, split_primitives, traits); expand(node.right_child(), first + new_range, beyond, range - new_range, compute_bbox, split_primitives);
} }
} }
@ -847,8 +845,7 @@ public:
m_primitives.begin(), m_primitives.end(), m_primitives.begin(), m_primitives.end(),
m_primitives.size(), m_primitives.size(),
compute_bbox, compute_bbox,
split_primitives, split_primitives);
m_traits);
} }
#ifdef CGAL_HAS_THREADS #ifdef CGAL_HAS_THREADS
m_atomic_need_build.store(false, std::memory_order_release); // in case build() is triggered by a call to root_node() m_atomic_need_build.store(false, std::memory_order_release); // in case build() is triggered by a call to root_node()