zone.near

Syntax

z := zone.near(v)

Get the nearest zone to v. Will return null if there are no zones in the model. Excludes mechanically null zones.

This function actually checks the surface of zone faces for distance, and treats a point inside a zone as being of distance 0 from the zone.

Returns:z - the pointer to the nearest zone to v
Arguments:v - a point in space