W dniu 01.09.2021 o 17:06, Glenn, Rachel M via Boost-users pisze:

I have a question about 3D RTree spatial queries, like a cube, sphere, or something. Are there any examples of how that can be done? I know how to do it for 2D RTree. Do you recommend the regular RTREE or a is there another one to use, like an rstar, that would be better?

 

Assuming you're asking about Boost.Geometry, you just have to use 3D point type, the rest is the same as for 2D:
https://github.com/boostorg/geometry/blob/develop/index/example/3d_benchmark.cpp#L47-L51

Adam