vcgCreateKDtreeFromBarycenters | R Documentation |
create a KD-tree from Barycenters for multiple closest point searches on a mesh
vcgCreateKDtreeFromBarycenters(mesh, nofPointsPerCell = 16, maxDepth = 64)
mesh |
matrix or triangular mesh containing coordinates |
nofPointsPerCell |
number of points per kd-cell |
maxDepth |
maximum tree depth |
returns an object of class vcgKDtreeWithBarycenters containing external pointers to the tree, the barycenters and the target mesh
vcgClostOnKDtreeFromBarycenters, vcgSearchKDtree, vcgCreateKDtree
## Not run:
data(humface);data(dummyhead)
barytree <- vcgCreateKDtreeFromBarycenters(humface)
closest <- vcgClostOnKDtreeFromBarycenters(barytree,dummyhead.mesh,k=50,threads=1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.