openvdb icon indicating copy to clipboard operation
openvdb copied to clipboard

[REQUEST] Box search of range search for

Open RENyunfan opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

Since openVDB uses a tree structure, is there any way I can efficiently perform a box search to get all values in a BBox ?

RENyunfan avatar Sep 19 '22 03:09 RENyunfan

I just added this functionality to NanoVDB. It will be part of OpenVDB version 10 which should release in a few weeks.

I could add the same functionality to the OpenVDB tree if for some reason you prefer not use NanoVDB. However, it will be much slower to perform this type of computation in OpenVDB since, unlike NanoVDB, it does not encode statistics like min/max per tree node.

kmuseth avatar Sep 19 '22 04:09 kmuseth

I just added this functionality to NanoVDB. It will be part of OpenVDB version 10 which should release in a few weeks.

I could add the same functionality to the OpenVDB tree if for some reason you prefer not use NanoVDB. However, it will be much slower to perform this type of computation in OpenVDB since, unlike NanoVDB, it does not encode statistics like min/max per tree node.

Thank you so much. Looking forward to seeing that.

RENyunfan avatar Sep 20 '22 12:09 RENyunfan