STAT(nged)
report information about objects in a BRL-CAD database
π STAT(nged) π
okay so welcome to STAT(nged), the BRL-CAD manual page where the GED stat command gets its whole main-character moment β¨ bestie, this one is all about peeking into a BRL-CAD .g file and getting a cute little table of whatβs inside π
β¨ NAME β¨
stat β report information about objects in a BRL-CAD database π
π¦ SYNOPSIS π¦
stat [-h] [-?] [-v] [-q] [-r] [-F string] [-C type1[,type2]...] [-S type1[,type2]...] [-o filename] {glob pattern}
πΈ DESCRIPTION πΈ
The GED stat command reports information about objects in a BRL-CAD .g file. It produces a configurable table and can filter, sort, and redirect the reported results. Periodt. π
π OVERVIEW π
The GED stat command reports information about objects in a BRL-CAD .g file. It produces tabular output, with options for user configurability and sorting. Itβs giving βdatabase gossip, but make it organized.β π
Available types reflect geometry object data:
π Table 1. STAT Information Keys - Core Object Info π
nameβ Object database name (for example,"primitive.s")usesβ Number of uses, from instancingsizeβ Size of database objectrefsβ Number of times object is referenced by COMBsflagsβ Flagsmajor_typeβ Object major typeminor_typeβ Object minor typetypeβ Object type (short name)
In addition to the above standard keys, attributes may also be specified. If the desired attribute happens to have the same name as one of the above standard keys, the prefix attr: may be added to denote an attribute. iykyk π«Ά
π OPTIONS π
-h,-?,βhelpβ Print help and exit.-v,βverbosityβ Increase output verbosity. Repeating-vincreases it further.-q,βquietβ Decrease output verbosity. Repeating-qdecreases it further.-r,βrawβ Print raw values, instead of human friendly strings (for example,5195952for a size instead of5.0M).-F,βfilterβ Specify search style filters to trim down what is reported instatoutput.-C,βcolumnsβ Supply a comma separated list of column specifiers or attribute keys to define the table layout forstat.-S,βsort-orderβ Supply a comma separated list of column specifiers or attribute keys to specify a sorting priority forstat. Priority is left to right - sorting will be performed first based on the leftmost specifier, and subsequent specifiers will be used to resolve any ties. To reverse the ordering decisions for a given column, prefix the specifier with a!character.-o,βoutput-fileβ Write output to filename instead of the command prompt.
π EXAMPLES π
π Example 1. Default Output π
stat *
Object Name uses References Flags Type Size
----------------------- ------ ------------ ------- -------- ------
Default 0 1 2 comb 288B
NIST_MBE_PMI_7-10.3dm 0 0 2 comb 264B
Solid1.r 0 1 6 region 280B
Solid1.r.s 0 1 1 brep 859K
Solid1_2.r 0 1 6 region 280B
Solid1_2.r.s 0 1 1 brep 672K
Solid1_3.r 0 1 6 region 280B
Solid1_3.r.s 0 1 1 brep 431K
Solid1_4.r 0 1 6 region 280B
Solid1_4.r.s 0 1 1 brep 771K
_GLOBAL 0 0 8 96B
π¦ Example 2. Sorting by Size π¦
stat -S "size" *
Object Name uses References Flags Type Size
----------------------- ------ ------------ ------- -------- ------
_GLOBAL 0 0 8 96B
NIST_MBE_PMI_7-10.3dm 0 0 2 comb 264B
Solid1_2.r 0 1 6 region 280B
Solid1_3.r 0 1 6 region 280B
Solid1.r 0 1 6 region 280B
Solid1_4.r 0 1 6 region 280B
Default 0 1 2 comb 288B
Solid1_3.r.s 0 1 1 brep 431K
Solid1_2.r.s 0 1 1 brep 672K
Solid1_4.r.s 0 1 1 brep 771K
Solid1.r.s 0 1 1 brep 859K
π Example 3. Sorting by Size, Reversed Order π
stat -S "!size" *
Object Name uses References Flags Type Size
----------------------- ------ ------------ ------- -------- ------
Solid1.r.s 0 1 1 brep 859K
Solid1_4.r.s 0 1 1 brep 771K
Solid1_2.r.s 0 1 1 brep 672K
Solid1_3.r.s 0 1 1 brep 431K
Default 0 1 2 comb 288B
Solid1_3.r 0 1 6 region 280B
Solid1.r 0 1 6 region 280B
Solid1_2.r 0 1 6 region 280B
Solid1_4.r 0 1 6 region 280B
NIST_MBE_PMI_7-10.3dm 0 0 2 comb 264B
_GLOBAL 0 0 8 96B
π Example 4. Filtering by Type π
stat -F "-type brep" *
Object Name uses References Flags Type Size
-------------- ------ ------------ ------- ------ ------
Solid1.r.s 0 1 1 brep 859K
Solid1_2.r.s 0 1 1 brep 672K
Solid1_3.r.s 0 1 1 brep 431K
Solid1_4.r.s 0 1 1 brep 771K
π§ Example 5. Custom Columns π§
stat -C "name,type,size,color" *
Object Name Type Size color
----------------------- -------- ------ -------------
Default comb 288B 0/0/0
NIST_MBE_PMI_7-10.3dm comb 264B 0/0/0
Solid1.r region 280B 153/231/254
Solid1.r.s brep 859K
Solid1_2.r region 280B 255/206/142
Solid1_2.r.s brep 672K
Solid1_3.r region 280B 237/255/168
Solid1_3.r.s brep 431K
Solid1_4.r region 280B 178/178/178
Solid1_4.r.s brep 771K
_GLOBAL 96B
Source/version: BRL-CAD Β· manual: STAT(nged) Β· date: not shown in the original footer π love u bestie, go slay some database inspection β¨π
π¦ 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