powered by
create a KD-tree
vcgCreateKDtree(mesh, nofPointsPerCell = 16, maxDepth = 64)
returns an object of class vcgKDtree containing external pointers to the tree and the target points
matrix or triangular mesh containing coordinates
number of points per kd-cell
maximum tree depth
vcgSearchKDtree
data(humface) mytree <- vcgCreateKDtree(humface)
Run the code above in your browser using DataLab