R(nged)
Creates a region with the specified region_name.
β¨ R (nged) β¨
okay so bestie, we're in the BRL-CAD User Commands manual and today's main character is r π she makes regions, and honestly? she ate.
πΈ NAME πΈ
r β creates a region with the specified region_name. that's it, that's the vibe π
β¨ SYNOPSIS β¨
r {region_name} {operation object}
π DESCRIPTION π
So r creates a region with the region_name you give it, bestie. No cap.
The region gets built out of a list of Boolean operations and object pairs. Real talk about the operators β they're single characters:
+β intersection-β subtractionuβ union
The object hanging out with each operator can be a combination or a primitive shape, either one works π¦
π¨ ok this part matters: no parentheses, no grouping, none of that. The r command does not allow any grouping indication at all. periodt.
The operator hierarchy for r has been established through the ancestry of BRL-CAD and does not conform to accepted standards π (if you want the more standard implementation, go see the c command, iykyk). So here's how it actually goes down:
- Intersection and subtraction operations get performed first, proceeding left to right
- Then union operations get performed
BRL-CAD regions are special cases of BRL-CAD combinations and they come with special attributes β¨. You can set default values for those attributes using the regdef command. And as new regions get built, the default ident number gets incremented β it just keeps climbing π
Oh and heads up: if region_name already exists, then the operation/object pairs get appended to its end instead of making something new. lowkey important, don't forget it π
π EXAMPLES π
The example shows the use of the r command to create a region consisting of two parts unioned together. iconic behavior tbh.
β Example 1. Create a region using operations and object pairs.
mged>r new_region u shape1 - shape2 u shape3 + group4
Creates a region named new_region that consists of two parts unioned together π
- The first part is
shape1withshape2subtracted - The second part is the intersection of
shape3and the combinationgroup4
see how it all comes together? chef's kiss π§
π AUTHOR π
BRL-CAD Team π«Ά
π₯ BUG REPORTS π₯
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org π§ fr fr, they wanna hear it.
and that's the whole page bestie π this was R(nged) from the BRL-CAD manuals β shoutout to the BRL-CAD crew, no date drama needed, just vibes and regions πβ¨π
π¦ 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