PUT_COMB(nged)
Insert combinations and regions - allows definition of both boolean expressions and standard attribute values.
π PUT_COMB(nged) β like, the MGED command, bestie
okay so we're in the BRL-CAD MGED Commands manual, and the star of the show today is put_comb. pull up a chair π
β¨ NAME β¨
put_comb β insert combinations and regions π it lets you define both boolean expressions and standard attribute values. one command. that's it. that's the whole vibe.
π¦ SYNOPSIS π¦
put_comb {comb_name} [is_Region [[id] | [air] | [material] | [los]]] {color} {shader} {inherit} {boolean_expr}
(yes there are two spaces after is_Region, no we're not fixing it, it's iconic π
)
πΈ DESCRIPTION πΈ
So put_comb is THE command for inserting regions and combinations with all their attributes set β using just one single line π₯ which is genuinely so useful in scripting situations. like, scripting girlies, this one's for you π«Ά
π EXAMPLES π
put_comb expects one of two particular forms of input, bestie β either a combination or a region. pick your fighter β¨
π Example 1. Specifying a combination using put_comb
mged>put_comb test.c n 255/255/255 plastic n "u sph.s u arb8.s"
This creates a combination that is not a region, using the plastic shader, consisting of the union of sph.s and arb8.s. π«
mged> l test.c
test.c: --
Shader 'plastic'
u sph.s
u arb8.s
mged> attr get test.c
oshader {plastic}
π Example 2. Specifying a region using put_comb
mged>put_comb test.r y 1001 0 32 1 255/255/255 plastic y "u sph.s u
arb8.s"
This creates a combination that is a region, with region id 1001, air flag off, material 32, los 1, white in color, using the plastic shader, inheriting, consisting of the union of sph.s and arb8.s. no cap π
mged> l test.r
test.r: REGION id=1001 (air=0, los=1, GIFTmater=32) --
Shader 'plastic'
(These material properties override all lower ones in the tree)
u sph.s
u arb8.s
mged> attr get test.r
region {R} inherit {1} oshader {plastic} region_id {1001}
material_id {32} los {1}
ngl that attribute dump is kind of a serve π
π AUTHOR π
BRL-CAD Team β we love them, we thank them, periodt π
π BUG REPORTS π
Found a bug or a problem? π don't suffer in silence β reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. they literally want to hear from you π«Ά
lowkey reminder: keep those attribute values exactly as written, bestie β this is real data, not a vibe π
that's the whole page, mwah π brought to you by BRL-CAD and the PUT_COMB(nged) manual page itself β go forth and combine responsibly, icon β¨ππ
π¦ 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