C(nged)
Creates a BRL-CAD combination with the name combination_name.
π C(nged) β or, "how to birth a combination, bestie"
okay so real quick: this is a page from the nged manual, part of BRL-CAD (yes, the big serious geometry thing), and today we're talking about the c command. it's giving "let there be combos." let's go π
β¨ NAME β¨
c β creates a BRL-CAD combination with the name combination_name. that's it. that's the whole job. iconic behavior honestly π
πΈ SYNOPSIS πΈ
c [-c] [-r] {combination_name} [Boolean_expression]
look at her. tiny little line, big responsibilities. π«Ά
π¦ DESCRIPTION π¦
so the c command creates a BRL-CAD combination named combination_name. like, you say a name, it makes the thing. main character energy fr fr.
now the flags, because we don't just raw-dog this:
-rβ says "this combination is a BRL-CAD region," bestie. region vibes only.-cβ says the combination is not a region. and plot twist:-cis the default, so if you never touch a flag, you're already in-cland π
the Boolean_expression is where it gets spicy β and yes, it allows parentheses, so you can group your little heart out. here's the production order, no cap:
- where no order is specified, intersections are performed before subtractions or unions
- then subtractions and unions are performed, left to right
periodt. that's the precedence, don't argue with it. β
some more situations, because life is complicated:
- if there's no Boolean_expression and no combination_name, you get a new empty combination. an empty little baby. a blank canvas. β¨
- if there's no Boolean_expression, but combination_name already exists, and you specified one of
-cor-r, then combination_name gets flagged to agree with whichever option you indicated. so you're not creating anything new, you're just re-labeling the existing one. glow-up, not rebirth. π - if a new region is created, or an existing combination is flagged as a region with this command, then its region-specific attributes will be set according to the current defaults (see
regdef). yes, defaults. go readregdefβ iykyk π₯
also fyi, the comb and r commands may also be used to create combinations. so like, c isn't the only way to slay here, she just has friends. π
π EXAMPLES π
the example shows how to use the c command to create a combination according to a given formula. very demure, very formulaic.
Example 1. Creating a combination according to a formula.
mged> c -c abc (a u b)-(a + d)
creates a combination named abc according to the formula (a u b) - (a + d).
ate. left no crumbs. π₯
π AUTHOR π
BRL-CAD Team β the whole squad. π
π BUG REPORTS π
found a bug? a problem? something acting ungovernable? reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org.
please do tell them, they want to know, it's giving "we listen and we don't judge" π
lowkey reminder before you go: don't forget the precedence rules (intersections first, then subtractions and unions left to right) and don't forget that -c is the default flag. no cap, that one trips people up. π§΅
alright bestie, that's the whole page β brought to you by BRL-CAD, filed under C(nged), and signed off with love. now go make some combinations π β¨π
π¦ 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