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

前端 未结 6 1317
余生分开走
余生分开走 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:21

    VTK can help:

    void vtkAbstractPointLocator::FindPointsWithinRadius ( double R, double x, double y, double z, vtkIdList * result )

    Subclasses of vtkAbstractPointLocator contain different data structures for search acceleration: regular buckets, kd-trees, and octrees.

提交回复
热议问题