nearpoint expression function

Finds the point in a geometry nearest to specific 3D coordinates.

Replaced by: hou.Geometry

All Usage Examples

See also: xyzdist, primdist, pointdist

Usage

nearpoint(surface_node, x, y, z)

Finds the nearest point in the surface node’s geometry to the given point (x, y, z). The return value is the point number of the nearest point.

Examples

nearpoint("/obj/geo1/grid1", 1, 2, 3)

Returns the point in the grid closest to (1, 2, 3).