GetFEM
5.4.3
|
Balanced tree over a set of points. More...
#include <bgeot_kdtree.h>
Public Member Functions | |
void | clear () |
reset the tree, remove all points | |
size_type | add_point (const base_node &n) |
insert a new point | |
void | add_point_with_id (const base_node &n, size_type i) |
insert a new point, with an associated number. | |
Balanced tree over a set of points.
Once the tree have been built, it is possible to query very quickly for the list of points lying in a given box. Note that this is not a dynamic structure: once you start to call kdtree::points_in_box, you should not use anymore kdtree::add_point.
Here is an example of use (which tries to find the mapping between the dof of the mesh_fem and the node numbers of its mesh):
Definition at line 102 of file bgeot_kdtree.h.