PUT_COMB(nged)

Insert combinations and regions - allows definition of both boolean expressions and standard attribute values.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… 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