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

Iterate over points in tree #3

Merged
merged 2 commits into from
Jan 23, 2024
Merged

Conversation

clbarnes
Copy link
Contributor

Resolves #2

@stephanemagnenat
Copy link
Member

stephanemagnenat commented Jan 22, 2024

Thank you for this PR. Overall it looks good.

There is one thing I'm not fully convinced, and that is the name of the function: iter. We are iterating the points in the tree, and not the tree itself. For the latter, I would assume to receive nodes and not points from the iterator.

What about naming the function iter_points for better clarity? If you agree, could you change the function in your PR to that naming? Then I can merge.

Separate methods for just iterating through points,
and provide methods for constructing P: Point from slices.
@clbarnes
Copy link
Contributor Author

Sure! I've split the point iteration out from the idx + point iteration, and also added a couple of convenience methods to Point for constructing them from a slice.

@stephanemagnenat stephanemagnenat merged commit c0739b2 into enlightware:main Jan 23, 2024
3 checks passed
@stephanemagnenat
Copy link
Member

Thank you for your contribution!

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.

Iterate over points in KDTree
2 participants