vcgCreateKDtree: create a KD-tree

View source: R/vcgCreateKD.r

vcgCreateKDtreeR Documentation

create a KD-tree

Description

create a KD-tree

Usage

vcgCreateKDtree(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 vcgKDtree containing external pointers to the tree and the target points

See Also

vcgSearchKDtree

Examples

data(humface)
mytree <- vcgCreateKDtree(humface)

zarquon42b/Rvcg documentation built on Feb. 7, 2024, 3:34 p.m.