SOLIDS_ON_RAY(nged)
list all primitives intersected by a ray through a display point
π SOLIDS_ON_RAY (nged) π
okay bestie, so this one lives in the BRL-CAD User Commands family (the nged manual, iykyk) and honestly? it's giving detective energy. You point at a spot on your screen, and it tells you every single primitive solid your imaginary laser beam ran into. Lowkey iconic. π₯
β¨ NAME β¨
solids_on_ray β lists all the primitives that get intersected by a ray shot through a display point π―
π¦ SYNOPSIS π¦
solids_on_ray h v
πΈ DESCRIPTION πΈ
So here's the vibe: solids_on_ray fires a ray through the current view, straight out from the screen position (h, v). That position is in normalized display coordinates, and the one thing you gotta remember is that 0,0 is the view center. The ray then reports back every single primitive solid it smacked into. no cap. π
The ray originates from the current view center and travels in the viewing direction at the specified screen offset. And it doesn't play favorites β all currently displayed objects get tested for intersection. everyone's invited to the vibe check. β¨
Both the h and v arguments are required, bestie. Omit them and it hits you with a usage error β not me forgetting, that's just the rules π. Also, the values have to be within the valid display bounds, so don't go sending it somewhere off-screen.
The output lists the full paths of all the primitives it hit, and it does it in the order they're encountered along the ray β so it's basically a receipt of your laser's whole journey. π§
π EXAMPLES π
Example 1. Find solids at the center of the view
mged> solids_on_ray 0 0
Fires a ray straight through the center of the current view and lists every primitive solid sitting along that ray. main character ray behavior honestly. π
Example 2. Find solids at an offset position
mged> solids_on_ray 100 50
Fires a ray 100 units right and 50 units up from the view center, then lists the intersected primitives. slay. π
π SEE ALSO π
nirt(nged)who(nged)
π«Ά AUTHOR π«Ά
BRL-CAD Team β we stan π
π BUG REPORTS π
Found a bug or a problem? Don't suffer in silence, bestie β send it via electronic mail to devs@brlcad.org π§
and that's the whole page, periodt β¨ This one's from the BRL-CAD fam β page SOLIDS_ON_RAY(nged), mwah, go shoot some rays π
ππ¦
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms