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

Kdtree locator customization points #51

Merged

Conversation

zhivkob
Copy link
Contributor

@zhivkob zhivkob commented Oct 27, 2021

The k-d tree point locator was missing template arguments to be passed to the k-d tree instance. It makes more sense to have them in the locator if you want support for multiple locators with a different instantiation of the k-d tree.

If we want to customize any of the k-d tree template values, we have to change the instance within the locator. To support multiple locators with different configurations, it's best to have the template arguments available in the locator declaration as well.
After the refactor there is an additional template argument that was missing from the output parameter in `initializeWithRegularGrid` and `initializeWithIrregularGrid`.
@artem-ogre
Copy link
Owner

Thank you, I think it is a good change.
Could you please clang-format your changes according to the .clang-format file in the repository?

@artem-ogre artem-ogre merged commit 9b7ad4f into artem-ogre:master Oct 27, 2021
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