HyperWorks Tools

::hwat::core::GetClosestCentroid

::hwat::core::GetClosestCentroid

Previous topic Next topic No expanding text in this topic  

::hwat::core::GetClosestCentroid

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::core::GetClosestCentroid - Finds the element whose centroid is closest to the given coordinates.

 

SYNTAX

::hwat::core::GetClosestCentroid x y z n_elems

 

ARGUMENTS

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.

 

RETURNS

The ID of the element if successful, {} otherwise.

 

EXAMPLE

::hwat::core::GetClosestCentroid 122.3 1334.4 678.2 [list 1200 1201 .. 5999 6000].

 

 

See also

Core Functions