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.
π 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
-rflag sorts regions into alphabetical order using the full path. - the
-iflag sorts by ident. - and the
-nflag 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 belowobject1andobject2. 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
- 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