REGIONS(nged)
write a region and Boolean member summary table to a file
πΈ REGIONS (nged) β the BRL-CAD User Commands era πΈ
okay so bestie, welcome to REGIONS(nged) π this is a page from the BRL-CAD User Commands manual and it's literally about writing a region + Boolean member summary table out to a file. no cap, it's more useful than it sounds.
β¨ NAME β¨
regions β write a region and Boolean member summary table to a file π
π¦ SYNOPSIS π¦
regions file object(s)
π DESCRIPTION π
so the regions command does a whole little journey through the hierarchy of one or more objects, and then writes a summary of all the regions it found to file. heads up though: the file gets opened in write mode and overwritten if it already exists π so like, don't point it at your diary.
regions is one of four related commands that all share the same underlying logic but produce different levels of detail. group-chat lineup, get into formation π
identsβ region-level summary only: region count, ident, air code, material code, LOS, and path. no primitives listed. it's giving minimal.regionsβ region-level summary with the Boolean formula (member names and operators) for each region. that's us, hi π«Άsolidsβ full summary all the way down to primitives: same asregions, plus the evaluated parameters of each primitive shape with accumulated transformation matrices applied. the overachiever of the group.tablesβ not a valid standalone command. invokingtablesdirectly returns an input error π use one of the three specific commands above instead. it's the sibling who didn't show up.
π Output format π
the output file is a fixed-width text table. each region entry includes the following fields, in this exact order:
- Region count β sequential index of the region as encountered.
- Region ID (ident) β the region's identifier number.
- Air code β air region code (
0if it's not an air region). - Material code (
GIFTmater) β GIFT material code. - LOS β line-of-sight percentage (
0β100). - Path β the full path from the listed object to the region.
- Boolean members β the list of member primitives and Boolean operators (
u,-,+) forming the region. combination sub-members are shown asRGentries; unknown object types show up as??.
there's also a header written at the top of the file containing the command name, database filename, username, database title, units, and the list of objects processed π
and after the table, a summary line gets appended:
Number Primitives = N
Number Regions = N
π§ Primitive numbering π§
each primitive in the Boolean formula gets assigned a unique solid number in brackets (e.g. [3]). the same primitive used across multiple regions is assigned the same number if the accumulated transformation matrix is identical β a different transformation produces a different number. that uniqueness is tracked via a temporary file at /tmp/mged_discr π
π₯ EXAMPLES π₯
β Example 1. Write a regions summary for two groups
mged> regions regions_file group1 group2
writes a region and Boolean member summary for all regions reachable from group1 and group2 to regions_file. the result string reports how many primitives and regions were processed. slay.
β Example 2. Write a summary for a specific top-level object
mged> regions hull_report.txt vehicle.c
writes the regions table for all regions under vehicle.c to hull_report.txt. iconic, honestly.
πΈ SEE ALSO πΈ
idents(nged)solids(nged)
iykyk π«
π AUTHOR π
BRL-CAD Team β legends, fr fr.
π BUG REPORTS π
reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org π§ (yes, actual email, very retro of them, we love it)
okay that's the whole page bestie, go forth and summarise those regions π this was REGIONS(nged) from the BRL-CAD manual β version vibes courtesy of the BRL-CAD release, so check your local install for the exact date. mwah πβ¨
π¦ 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