NIRT(nged)

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

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… NAME πŸ’…

nirt β€” bestie, this is the one that runs the NIRT program that ships with BRL-CAD, and it fires a single ray through whatever objects are on your display ✨


πŸŽ€ SYNOPSIS πŸŽ€

nirt [nirt_args]

🌸 DESCRIPTION 🌸

Okay so picture this: nirt runs the nirt(1) command line program that comes bundled with BRL-CAD, and what it does is intersect a single ray with the objects currently being displayed in your active view. That's the whole vibe πŸ”₯

By default, when nirt(n) (the GED level command) runs, the current database is the one it uses, and the objects currently displayed in the scene are the active object set. Periodt. The default starting point for the ray is the current center point in the view β€” however (and this is the cute little plot twist), just like with nirt(1), by default the ray origin point gets backed out until it's outside the geometry. And the current viewing direction? Yeah, that's the ray direction, no cap.

Intuitively, what this all means is the NIRT ray gets fired "into" the center of the display 🎯 The resulting collection of intersections between the ray and the objects comes back as textual output, and by default the hit segments and gaps get plotted in the view. It's giving visual feedback, we love her.

When you're in the graphics window, the hot key N will run the nirt command with no arguments at the center of the screen. iykyk πŸ’…

You can also pass additional arguments on the command line. Go check the nirt(1) man page for documentation on the available options β€” and with the exception of specifying a different .g file, the options available on the nirt(1) command line should also be available to the nirt(n) version. Slay 🫢


✨ OPTIONS ✨

  • See the nirt(1) man page for options documentation. That's it, that's the whole section, she's lowkey a woman of mystery πŸ™ˆ

πŸ¦‹ EXAMPLES πŸ¦‹

Example 1. Run the NIRT program to fire a ray through the GED display.

mged>nirt

Fires a single ray through the center of the GED display. Iconic, honestly.

Example 2. Run the NIRT program to fire a ray through the GED display and report air.

mged>nirt -u 1

Fires a single ray through the center of the GED display and reports air regions πŸ‘‘

Example 3. Run the NIRT program to fire a ray through the GED display and include LOS and material ID per region.

mged>nirt -A LOS -A material_id

Fires a single ray through the center of the GED display and includes LOS and material ID per region. Ate, no crumbs 🌈


πŸ’– AUTHOR πŸ’–

BRL-CAD Team β€” literal main characters ⭐


πŸ“ BUG REPORTS πŸ“

Found a bug? A problem? Something mildly cursed? 😭 Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β€” they'll take care of you, fr fr.

kay that's the whole page bestie, mwah πŸ’‹ β€” this slice of icon behavior comes to you from BRL-CAD, manual page NIRT(nged). go fire some rays πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from