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

Get indices from leaf in nanovdb? #1782

Open
DiegoBergondo opened this issue Mar 28, 2024 · 2 comments
Open

Get indices from leaf in nanovdb? #1782

DiegoBergondo opened this issue Mar 28, 2024 · 2 comments
Labels

Comments

@DiegoBergondo
Copy link

Hi,

I'm working on a project with nanovdb and I need the indices() of leaf, like in OpenVDB:

grid->tree().probeLeaf(Coord(x,y,z))->indices()

But I can't find anything similar in the nanovdb leaf:

nanoGrid->getAccessor().probeLeaf(Coord(x,y,z))-> ?

I really need them, is there something equal or equivalent?

Thanks.

@DiegoBergondo DiegoBergondo changed the title get indices from leaf in nanovdb? Get indices from leaf in nanovdb? Mar 28, 2024
@kmuseth
Copy link
Contributor

kmuseth commented Mar 29, 2024 via email

@DiegoBergondo
Copy link
Author

Hi Ken, thanks for your answer.

I'm trying to do a similar but very small and very limited version of "searchAndApply" from PointIndexFilter of OpenVDB for Cuda, and I have everything I need on the nanogrid but indices and I would need to know if that data is stored somewhere on the nanogrid.

There is no such method:openvdb::tree::LeafNode::indices()What exactly are you trying to do? Accessing values in a leaf node by linear index?-KenOn Mar 27, 2024, at 6:10 PM, Diego Bergondo @.> wrote: Hi, I'm working on a project with nanovdb and I need the indices() of leaf, like in OpenVDB: grid->tree().probeLeaf(Coord(x,y,z))->indices() But I can't find anything similar in the nanovdb leaf: nanoGrid->getAccessor().probeLeaf(Coord(x,y,z))-> ? I really need them, is there something equal or equivalent? Thanks. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

@Idclip Idclip added the nanovdb label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants