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

Determining neighbors of a leaf? #30

Open
ArjunNarayanan opened this issue Apr 20, 2020 · 3 comments
Open

Determining neighbors of a leaf? #30

ArjunNarayanan opened this issue Apr 20, 2020 · 3 comments

Comments

@ArjunNarayanan
Copy link

Is there a way to determine all the neighbors of a given leaf? If this requires a pull request I am happy to try and look into it :)

@rdeits
Copy link
Collaborator

rdeits commented Apr 22, 2020

You could do children(parents(x)) to get all of the cells which are children of the same parent. Would that work for your case?

@ArjunNarayanan
Copy link
Author

No, that will not suffice for me, I need to determine all of the neighbors of a cell. I figured I could construct this information top down -- starting from the root and then updating the neighbors of the children at each level.

@ashwani-rathee
Copy link

Could this be a default feature to get neighbours quickly: children(parents(x))?
Also @ArjunNarayanan when talking about all neigbours of a cell, did you mean all blocks nearby in nd space?

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

3 participants