::hwat::core::GetClosestCentroid - Finds the element whose centroid is closest to the given coordinates.
::hwat::core::GetClosestCentroid x y z n_elems
x |
X-coordinate of the location. |
y |
Y-coordinate of the location. |
z |
Z-coordinate of the location. |
n_elems |
A Tcl list of elements. |
The ID of the element if successful, {} otherwise.
::hwat::core::GetClosestCentroid 122.3 1334.4 678.2 [list 1200 1201 .. 5999 6000].