Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vcgKDtree

perform kdtree search for 3D-coordinates.


Description

perform kdtree search for 3D-coordinates.

Usage

vcgKDtree(target, query, k, nofPoints = 16, maxDepth = 64, threads = 1)

Arguments

target

n x 3 matrix with 3D coordinates or mesh of class "mesh3d". These coordinates are to be searched.

query

m x 3 matrix with 3D coordinates or mesh of class "mesh3d". We seach the closest coordinates in target for each of these.

k

number of neighbours to find

nofPoints

integer: number of points per cell in the kd-tree (don't change unless you know what you are doing!)

maxDepth

integer: depth of the kd-tree (don't change unless you know what you are doing!)

threads

integer: threads to use in closest point search.

Value

a list with

index

integer matrices with indeces of closest points

distances

corresponding distances


Rvcg

Manipulations of Triangular Meshes Based on the 'VCGLIB' API

v0.19.2
GPL (>= 2) | file LICENSE
Authors
Stefan Schlager [aut, cre, cph], Girinon Francois [ctb]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.