Blender V2.61 - r43446
Classes | Typedefs | Functions

BLI_kdtree.h File Reference

A kd-tree for nearest neighbour search. More...

Go to the source code of this file.

Classes

struct  KDTreeNearest

Typedefs

typedef struct KDTree KDTree
typedef struct KDTreeNearest KDTreeNearest

Functions

KDTreeBLI_kdtree_new (int maxsize)
void BLI_kdtree_free (KDTree *tree)
void BLI_kdtree_insert (KDTree *tree, int index, float *co, float *nor)
void BLI_kdtree_balance (KDTree *tree)
int BLI_kdtree_find_nearest (KDTree *tree, float *co, float *nor, KDTreeNearest *nearest)
int BLI_kdtree_find_n_nearest (KDTree *tree, int n, float *co, float *nor, KDTreeNearest *nearest)
int BLI_kdtree_range_search (KDTree *tree, float range, float *co, float *nor, KDTreeNearest **nearest)

Detailed Description

A kd-tree for nearest neighbour search.

Author:
Janne Karhu
Brecht van Lommel

Definition in file BLI_kdtree.h.


Typedef Documentation

typedef struct KDTree KDTree

Definition at line 40 of file BLI_kdtree.h.

typedef struct KDTreeNearest KDTreeNearest

Function Documentation

void BLI_kdtree_balance ( KDTree tree)
int BLI_kdtree_find_n_nearest ( KDTree tree,
int  n,
float *  co,
float *  nor,
KDTreeNearest nearest 
)
int BLI_kdtree_find_nearest ( KDTree tree,
float *  co,
float *  nor,
KDTreeNearest nearest 
)
void BLI_kdtree_free ( KDTree tree)
void BLI_kdtree_insert ( KDTree tree,
int  index,
float *  co,
float *  nor 
)
KDTree* BLI_kdtree_new ( int  maxsize)
int BLI_kdtree_range_search ( KDTree tree,
float  range,
float *  co,
float *  nor,
KDTreeNearest **  nearest 
)