Skip to content

Commit 9a40e5d

Browse files
committed
minor changes
1 parent a1a90e6 commit 9a40e5d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

include/geode/geometry/aabb.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ namespace geode
216216
*/
217217
template < class EvalBox, class EvalIntersection >
218218
void compute_generic_element_bbox_intersections(
219-
EvalBox& box_filter, EvalIntersection& action ) const;
219+
const 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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)