Learn R Programming

Rvcg (version 0.24)

vcgCreateKDtree: create a KD-tree

Description

create a KD-tree

Usage

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

Value

returns an object of class vcgKDtree containing external pointers to the tree and the target points

Arguments

mesh

matrix or triangular mesh containing coordinates

nofPointsPerCell

number of points per kd-cell

maxDepth

maximum tree depth

See Also

vcgSearchKDtree

Examples

Run this code
data(humface)
mytree <- vcgCreateKDtree(humface)

Run the code above in your browser using DataLab