EDCODES(nged)

Puts the user into an editor to edit a file that has been filled with the ident, air code, material code, LOS, and name of all the regions in the specified objects.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… EDCODES(nged) β€” the girlies' guide to editing region codes ✨

ok so real talk, this is a BRL-CAD User Command from the nged manual, and it's genuinely one of the most useful little tools ever. bestie, let me tell you about edcodes.


🌸 NAME 🌸

edcodes β€” drops you into an editor to edit a file that's been filled with the ident, air code, material code, LOS, and name of all the regions in whatever objects you point it at. that's it. that's the whole vibe. πŸ’–


✨ SYNOPSIS ✨

edcodes [-i] [-n] [-r] [-E editor] {object(s)}

short, sweet, slay. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: edcodes puts you into an editor with a file that's been pre-filled with the ident, air code, material code, LOS, and name of every single region in the objects you specified. then you get to go in and glow them up β€” modify the entries however you want. πŸ’…

⚠️ one thing though: you can't change the names. the names are off-limits. everything else? fair game. no cap.

which editor does it use? whatever you've got set in the environment variable EDITOR, bestie. if EDITOR isn't set, then it just uses your system default. and if you're feeling picky, the -E option lets you override that editor choice for just this one command invocation. main character energy, honestly. πŸ‘‘

now, the sorting situation β€” lowkey important:

  • by default, the file is sorted by order of appearance.
  • the -r flag sorts regions into alphabetical order using the full path.
  • the -i flag sorts by ident.
  • and the -n flag skips the editor step entirely and reports only the region names encountered below the specified objects. it's giving "just tell me what's there, i'm not editing today." πŸ™ˆ

πŸ”₯ EXAMPLES πŸ”₯

the example shows the use of the edcodes command for editing the region codes in the files of two objects. iconic.

Edit the region codes of two objects. 🫢

mged> edcodes object1 object2
enables the user to edit the region codes for all regions below object1 and object2. literally that simple. ate. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the legends themselves. ⭐


πŸ’œ BUG REPORTS πŸ’œ

found a bug? a problem? something cursed? 😭 report it via electronic mail to devs@brlcad.org. they want to know, fr fr. πŸ“


and that's the whole page, bestie β€” go forth and edit those region codes πŸ’–βœ¨

this was EDCODES(nged) from the BRL-CAD User Commands set, brought to you by the BRL-CAD Team, and dated however your local copy says it is β€” check your own footer, i'm not a mind reader, iykyk πŸ’…πŸŽ€

πŸ“¦ where this page comes from