Skip to content

Commit d8424ea

Browse files
yo35BotellaA
authored andcommitted
Stick to naming conv
1 parent 78f88bd commit d8424ea

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

include/geode/geometry/aabb.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ namespace geode
199199
* @brief Computes the intersections between any object (for which
200200
* intersection against an arbitrary axis-aligned bounding box can be
201201
* detected efficiently) and all element boxes.
202-
* @param[in] boxFilter The functor to run to determine whether a box is
203-
* intersected by the searched object or not. The box may correspond
202+
* @param[in] box_filter The functor to run to determine whether a box
203+
* is intersected by the searched object or not. The box may correspond
204204
* either to an internal tree node or to a tree element.
205205
* @param[in] action The functor to run when a tree element box is
206206
* intersected by the search object.
@@ -216,7 +216,7 @@ namespace geode
216216
*/
217217
template < class EvalBox, class EvalIntersection >
218218
void compute_generic_element_bbox_intersections(
219-
EvalBox& boxFilter, EvalIntersection& action ) const;
219+
EvalBox& box_filter, EvalIntersection& action ) const;
220220

221221
/*!
222222
* @brief Computes the intersections between a given Segment and

include/geode/geometry/detail/aabb_impl.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ namespace geode
572572
}
573573

574574
template < typename BOX_FILTER, typename ACTION >
575-
bool generic_intersect_recursive( BOX_FILTER& boxFilter,
575+
bool generic_intersect_recursive( BOX_FILTER& box_filter,
576576
index_t node_index,
577577
index_t element_begin,
578578
index_t element_end,
@@ -585,7 +585,7 @@ namespace geode
585585
"No iteration allowed start == end" );
586586

587587
// Prune sub-tree that does not have intersection
588-
if( !boxFilter( node( node_index ) ) )
588+
if( !box_filter( node( node_index ) ) )
589589
{
590590
return false;
591591
}
@@ -599,19 +599,19 @@ namespace geode
599599
node_index, element_begin, element_end );
600600
if( depth > async_depth_ )
601601
{
602-
if( generic_intersect_recursive( boxFilter, it.child_left,
602+
if( generic_intersect_recursive( box_filter, it.child_left,
603603
element_begin, it.element_middle, depth + 1, action ) )
604604
{
605605
return true;
606606
}
607-
return generic_intersect_recursive( boxFilter, it.child_right,
607+
return generic_intersect_recursive( box_filter, it.child_right,
608608
it.element_middle, element_end, depth + 1, action );
609609
}
610610
auto task = async::local_spawn( [&] {
611-
return generic_intersect_recursive( boxFilter, it.child_left,
611+
return generic_intersect_recursive( box_filter, it.child_left,
612612
element_begin, it.element_middle, depth + 1, action );
613613
} );
614-
if( generic_intersect_recursive( boxFilter, it.child_right,
614+
if( generic_intersect_recursive( box_filter, it.child_right,
615615
it.element_middle, element_end, depth + 1, action ) )
616616
{
617617
return true;
@@ -781,14 +781,14 @@ namespace geode
781781
template < index_t dimension >
782782
template < class EvalBox, class EvalIntersection >
783783
void AABBTree< dimension >::compute_generic_element_bbox_intersections(
784-
EvalBox& boxFilter, EvalIntersection& action ) const
784+
EvalBox& box_filter, EvalIntersection& action ) const
785785
{
786786
if( nb_bboxes() == 0 )
787787
{
788788
return;
789789
}
790790
impl_->generic_intersect_recursive(
791-
boxFilter, Impl::ROOT_INDEX, 0, nb_bboxes(), 0, action );
791+
box_filter, Impl::ROOT_INDEX, 0, nb_bboxes(), 0, action );
792792
}
793793

794794
template < index_t dimension >

0 commit comments

Comments
 (0)