primdist expression function

Returns the minimum distance and closest points between two primitives.

All Usage Examples

See also: pointdist, xyzdist, nearpoint

Usage

primdist(surface_node, prim1_num, surface_node, prim2_num, return_type)

Only works for faces, curves, and spline surfaces. Other types of primitives will always return 0.

Examples

primdist("/obj/geo1/sphere1", 0, "/obj/geo1/grid1", 0, 0)

Returns the distance between the first primitives in both sphere1 and grid1.