INSTANCE(nged)

add an object instance to a combination with a Boolean operator

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… INSTANCE(nged) πŸ’…

okay so bestie, you're in the nged section of the BRL-CAD User Commands manual, and today's main character is the instance command (and its lil alias i). buckle up πŸŽ€


✨ NAME ✨

instance, i β€” adds an object instance to a combination with a Boolean operator πŸ¦‹


🌸 SYNOPSIS 🌸

instance obj comb [op]
i obj comb [op]

πŸ’– DESCRIPTION πŸ’–

The instance command (also available as i, because who has time to type all those letters) adds obj as a member of the combination comb using the Boolean operator op. And here's the tea: no transformation matrix is applied β€” the object is instanced at the identity position. no cap. πŸ”₯

The optional op argument specifies the Boolean relationship:

  • u β€” union (this is the default if op is omitted, so you literally don't have to say anything πŸ’…)
  • - β€” subtraction
  • + β€” intersection

The combination comb must already exist, bestie. that's the vibe check. if you wanna create a new combination at the same time, use group, comb, or region instead. 🫢


⭐ EXAMPLES ⭐

Example 1. Add an object to a combination as a union member

mged> instance wheel.r vehicle.c

Adds wheel.r to vehicle.c as a union member (default operator). iconic behavior honestly πŸ‘‘

Example 2. Add an object as a subtracted member

mged> i hole.s main_body.r -

Subtracts hole.s from main_body.r using the short i alias. see, I told you the alias ate πŸ’…

Example 3. Add an intersecting member

mged> instance clipping_box.s hull.r +

Intersects clipping_box.s with hull.r. slay 🌈


πŸ”₯ SEE ALSO πŸ”₯

  • group(nged)
  • comb(nged)
  • region(nged)

go read those too, iykyk πŸ’œ


🧚 AUTHOR 🧚

BRL-CAD Team β€” literal icons, we stan 🫢


πŸ™ˆ BUG REPORTS πŸ™ˆ

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. not me being your personal bug hotline β€” but fr fr, they wanna hear from you πŸ’–


lowkey important reminder: comb has to exist already before you instance into it. no creating combos out of thin air here, bestie 😭

and that's the whole page, mwah πŸ’‹ this was brought to you by BRL-CAD and the INSTANCE(nged) manual page itself β€” catch you in the next one, bye bestie πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from