Learn R Programming

Rvcg (version 0.24)

vcgCreateKDtreeFromBarycenters: create a KD-tree from Barycenters for multiple closest point searches on a mesh

Description

create a KD-tree from Barycenters for multiple closest point searches on a mesh

Usage

vcgCreateKDtreeFromBarycenters(mesh, nofPointsPerCell = 16, maxDepth = 64)

Value

returns an object of class vcgKDtreeWithBarycenters containing external pointers to the tree, the barycenters and the target mesh

Arguments

mesh

matrix or triangular mesh containing coordinates

nofPointsPerCell

number of points per kd-cell

maxDepth

maximum tree depth

See Also

vcgClostOnKDtreeFromBarycenters, vcgSearchKDtree, vcgCreateKDtree

Examples

Run this code
if (FALSE) {
data(humface);data(dummyhead)
barytree <- vcgCreateKDtreeFromBarycenters(humface)
closest <- vcgClostOnKDtreeFromBarycenters(barytree,dummyhead.mesh,k=50,threads=1)
}

Run the code above in your browser using DataLab