vcgCreateKDtreeFromBarycenters: create a KD-tree from Barycenters for multiple closest point...

Description Usage Arguments Value See Also Examples

View source: R/vcgCreateKD.r

Description

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

Usage

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

Arguments

mesh

matrix or triangular mesh containing coordinates

nofPointsPerCell

number of points per kd-cell

maxDepth

maximum tree depth

Value

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

See Also

vcgClostOnKDtreeFromBarycenters, vcgSearchKDtree, vcgCreateKDtree

Examples

1
2
3
4
5
6
## Not run: 
data(humface);data(dummyhead)
barytree <- vcgCreateKDtreeFromBarycenters(humface)
closest <- vcgClostOnKDtreeFromBarycenters(barytree,dummyhead.mesh,k=50,threads=1)

## End(Not run)

zarquon42b/Rvcg documentation built on Oct. 1, 2018, 2:11 p.m.