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

If it's possible to update the octree? #15

Closed
RubikZero opened this issue Mar 12, 2020 · 1 comment
Closed

If it's possible to update the octree? #15

RubikZero opened this issue Mar 12, 2020 · 1 comment

Comments

@RubikZero
Copy link

For example, provide some functions to add, remove or update points and recalculate the octree's childs.

@jbehley
Copy link
Owner

jbehley commented Mar 12, 2020

Currently, this is not supported.

The main reason is that this would require to modify the successor list on which we rely to assign each octant the points it contains.

I currently also assume that the points vector does not change, since I store only the indices to the points in the vector. Adding points should be easy to implement, since it might only involve reshuffling the successor list. However, removing points is a different story.

It involves definitely some work, but should be possible to implement. I refrained from implementing it, since doing it in a consistent and nice way needs some non-trivial design decisions, which would break the original design substantially. For me it was always fine to just rebuild the tree as the construction is negligible in my applications where I searched for each points neighbors.

@jbehley jbehley closed this as completed Oct 31, 2023
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

No branches or pull requests

2 participants