allow to add a set of elements in the neighbour index
allow to add a set of elements in the neighbour index
the elements to add in the data structure
the data structure
search the neighbours near a point p
search the neighbours near a point p
the center of search
the radius
(Since version ) see corresponding Javadoc for more information.
a data structure used to search the neighbour you can add elements like map structure:
@{code val index[Int] = NNIndex(Map.empty) index += Point3D -> 0 val elems = (0 to 100) map {x => Point3D(math.random,math.random,math.random) -> x} index ++= elems }you can find neighbours using in this way:@{code val radiusSearch = 10 val neighbour = index.neighbours(Point3D(0,0,0),radiusSearch) }the value ok key