Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the BruteForce interface uniform with BoundingVolumeHierarchy with respect to TraversalPolicy #966

Closed

Conversation

masterleinad
Copy link
Collaborator

Addressing #962 (comment). We can't really check the values here since we would like to pass values that are only relevant for BVH.

@masterleinad masterleinad marked this pull request as ready for review October 31, 2023 18:41
Comment on lines -64 to +65
Callback const &callback, Ignore = Ignore()) const;
Callback const &callback,
Experimental::TraversalPolicy const &policy =
Experimental::TraversalPolicy()) const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Experimental::TraversalPolicy makes absolutely no sense for BruteForce. This was literally the point of that Ignore parameter.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It just doesn't make much sense to me to have a user-exposed template parameter that allows passing in arbitrary types that are entirely ignored.

@dalg24
Copy link
Contributor

dalg24 commented Oct 31, 2023

What issue is that resolving? The Ignore template parameter is precisely there for compatibility.

@masterleinad
Copy link
Collaborator Author

We hope to refactor the interface for BVH that might get rid of TraversalPolicy anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants