which data structure is appropriate to query “all points within distance d from point p”

前端 未结 6 1289
余生分开走
余生分开走 2020-12-08 11:53

I have a 3D pointcloud and I\'d like to efficiently query all points within distance d from an arbitrary point p (which is not necessarily part of the stored pointcloud)

6条回答
  •  时光说笑
    2020-12-08 12:27

    A map with key equal to the distance and value being the Point itself would allow you to query for all Points less than a given distance or within a given range.

提交回复
热议问题