## Name

query_ray — Runs the NIRT program that is distributed with BRL-CAD to intersect a single ray with the displayed objects.

## Synopsis

`query_ray` [`nirt_args`]

## DESCRIPTION

Runs the NIRT program that is distributed with BRL-CAD to intersect a single ray with the displayed objects. By default, NIRT is run using the current database and the currently displayed objects and uses the current eye point as the ray start point and the current viewing direction as the ray direction. This effectively fires a ray at the center of the MGED display. The resulting list of intersections between the ray and the objects is given. Additional arguments may be supplied on the NIRT command line. See the man page of nirt for more details.

## EXAMPLES

The example shows the use of the query_ray command to fire a single ray through the center of the MGED display.

Example 1. Fire a ray through the center of the MGED display.

`mged>``query_ray`

Fires a single ray through the center of the MGED display.

## BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to <devs@brlcad.org>, or via the "cadbug.sh" script.