Boost logo

Boost Users :

From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2021-09-02 19:41:02


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net