geom.set.closest

Syntax

v = geom.set.closest(g,vp<,f>)

Get closest node coordinate vector from the position supplied.

Note that this searched nodes, edges, and polygons in the set. If you are only interested in polygons use geom.set.poly.closest.

Returns:

v - node coordinate vector

Arguments:

g - geometric set pointer

vp - 3d vector position

f - initial search radius( optional float)