@@ -426,7 +426,7 @@ namespace geode
426426 }
427427
428428 template < typename BOX_FILTER, typename ACTION >
429- bool generic_intersect_recursive ( BOX_FILTER& box_filter,
429+ bool generic_intersect_recursive ( const BOX_FILTER& box_filter,
430430 index_t node_index,
431431 index_t element_begin,
432432 index_t element_end,
@@ -571,7 +571,7 @@ namespace geode
571571 void AABBTree< dimension >::compute_bbox_element_bbox_intersections(
572572 const BoundingBox< dimension >& box, EvalIntersection& action ) const
573573 {
574- auto box_filter = [&box]( const BoundingBox< dimension > & inner_box ) {
574+ const auto box_filter = [&box]( const auto & inner_box ) {
575575 return inner_box.intersects ( box );
576576 };
577577 compute_generic_element_bbox_intersections ( box_filter, action );
@@ -609,7 +609,7 @@ namespace geode
609609 void AABBTree< dimension >::compute_ray_element_bbox_intersections(
610610 const Ray< dimension >& ray, EvalIntersection& action ) const
611611 {
612- auto box_filter = [&ray]( const BoundingBox< dimension > & box ) {
612+ const auto box_filter = [&ray]( const auto & box ) {
613613 return box.intersects ( ray );
614614 };
615615 compute_generic_element_bbox_intersections ( box_filter, action );
@@ -620,7 +620,7 @@ namespace geode
620620 void AABBTree< dimension >::compute_line_element_bbox_intersections(
621621 const InfiniteLine< dimension >& line, EvalIntersection& action ) const
622622 {
623- auto box_filter = [&line]( const BoundingBox< dimension > & box ) {
623+ const auto box_filter = [&line]( const auto & box ) {
624624 return box.intersects ( line );
625625 };
626626 compute_generic_element_bbox_intersections ( box_filter, action );
@@ -629,7 +629,7 @@ namespace geode
629629 template < index_t dimension >
630630 template < class EvalBox , class EvalIntersection >
631631 void AABBTree< dimension >::compute_generic_element_bbox_intersections(
632- EvalBox& box_filter, EvalIntersection& action ) const
632+ const EvalBox& box_filter, EvalIntersection& action ) const
633633 {
634634 if ( nb_bboxes () == 0 )
635635 {
@@ -644,7 +644,7 @@ namespace geode
644644 void AABBTree< dimension >::compute_triangle_element_bbox_intersections(
645645 const Triangle< dimension >& triangle, EvalIntersection& action ) const
646646 {
647- auto box_filter = [&triangle]( const BoundingBox< dimension > & box ) {
647+ const auto box_filter = [&triangle]( const auto & box ) {
648648 return box.intersects ( triangle );
649649 };
650650 compute_generic_element_bbox_intersections ( box_filter, action );
@@ -655,7 +655,7 @@ namespace geode
655655 void AABBTree< dimension >::compute_segment_element_bbox_intersections(
656656 const Segment< dimension >& segment, EvalIntersection& action ) const
657657 {
658- auto box_filter = [&segment]( const BoundingBox< dimension > & box ) {
658+ const auto box_filter = [&segment]( const auto & box ) {
659659 return box.intersects ( segment );
660660 };
661661 compute_generic_element_bbox_intersections ( box_filter, action );
0 commit comments