WHICHAIR(nged)

Reports information relating to usage of air codes on regions.

πŸ“… published 7.44.0, from nixpkgs unstable

✨ WHICHAIR ✨ (nged, bestie πŸ’…)

okay so real quick β€” this is a BRL-CAD MGED command, whichair, and it's genuinely the most "detective era" command in the whole toolkit πŸ” It's all about snooping on the air_codes property and telling you who's using what.


πŸŽ€ NAME πŸŽ€

whichair β€” reports information relating to usage of air codes on regions. that's it, that's the whole vibe πŸ’–


🌸 SYNOPSIS 🌸

whichair [options ...] {air_codes}

πŸ¦‹ DESCRIPTION πŸ¦‹

so whichair reports info about how the air_codes property is being used by regions in a .g file. default mode? it tells you which regions are using one or more of the air-code values or ranges you hand it. iconic behavior honestly ✨

if you specify a root object, it only reports for regions inside that object's tree. and if you pass -U or β€”unused, the whole report flips inside out and it lists the unused air-code ranges instead. plot twist πŸŒ€

also a heads up: the eac command does a similar search, but instead of listing the qualifying regions it draws them in the MGED display. same energy, different delivery πŸ’…


πŸ’œ OPTIONS πŸ’œ

  • -h, -?, β€”help β€” prints help and dips out. bye bestie πŸ‘‹
  • -s, β€”script β€” script-oriented output formatting, for when you need it neat and machine-friendly πŸ–₯️
  • -V β€” lists all active air codes even when there are no associated regions found. nothing's there but the code still gets its moment ⭐
  • -U, β€”unused β€” reports unused air-code ranges instead. the inversion arc πŸ”„
  • β€”root objname β€” limits reporting to regions in the CSG tree below objname. keep it scoped, keep it focused 🎯

🌈 EXAMPLES 🌈

for these examples the geometry file used is the standard m35.g included with BRL-CAD. (yes, the classic one 🫢)

⭐ Example 1. Report all regions using air codes between 7 and 10.

mged>whichair 7-10

    Region[s] with air code 7:
       r11
       r13
       r15
    Region[s] with air code 8:
       r25
       r27
       r29
       r31
       r33
       r35

look at all those little regions showing up for roll call πŸ˜­πŸ’–

πŸ¦‹ Example 2. Report all unused aircode ranges in the database between 1 and 10.

mged>whichair -U 1-10

    Unused air codes:
       1-3
       5
       9-10

the gaps are the main characters here, no cap πŸ’€


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” absolute legends πŸ’œ


πŸ“ BUG REPORTS πŸ“

found a bug or a problem? don't suffer in silence bestie, email it to devs@brlcad.org πŸ“§

fr fr do report it, they actually want to know πŸ™ˆ

that's the whole page bestie, now go snoop on some air codes 🌸✨ β€” BRL-CAD, WHICHAIR(nged) πŸ’…

πŸ“¦ where this page comes from