struct.near

Syntax

p := struct.near(v)

Get the structural element (of any type) whose centroid is closest to the point v. Will return null if there are no structural elements in the model.

Returns:p - a pointer to a structural element, or null if none exists
Arguments:v - a position in space