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