'\" t
.\"     Title: C
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 04/13/2022
.\"    Manual: BRL-CAD User Commands
.\"    Source: BRL-CAD
.\"  Language: English
.\"
.TH "C" "nged" "04/13/2022" "BRL\-CAD" "BRL\-CAD User Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
c \- Creates a BRL\-CAD combination with the name \fIcombination_name\fR\&.
.SH "SYNOPSIS"
.HP \w'\fBc\fR\ 'u
\fBc\fR [\-c] [\-r] {\fIcombination_name\fR} [\fIBoolean_expression\fR]
.SH "DESCRIPTION"
.PP
The
\fBc\fR
command creates a
\fIBRL\-CAD\fR
combination with the name
\fIcombination_name\fR\&. The
\fI\-r\fR
option indicates that the combination is a
\fIBRL\-CAD \fRregion\&. The
\fI\-c\fR
option is the default and indicates that the combination is not a region\&. The
\fIBoolean_expression\fR
allows parentheses\&. Where no order is specified, intersections are performed before subtractions or unions; then subtractions and unions are performed, left to right\&. Where there is no
\fIBoolean_expression\fR
and
\fIcombination_name\fR, a new empty combination will be created\&. If no
\fIBoolean_expression\fR
is provided, and
\fIcombination_name\fR
does already exist and one of
\fI\-c\fR
or
\fI\-r\fR
is specified, then
\fIcombination_name\fR
is flagged to agree with the indicated option\&. If a new
\fIregion\fR
is created or an existing combination is flagged as a region with this command, its region\-specific attributes will be set according to the current defaults (see
\fBregdef\fR)\&. The
\fBcomb\fR
and
\fBr\fR
commands may also be used to create combinations\&.
.SH "EXAMPLES"
.PP
The example shows how to use the
\fBc\fR
command to create a combination according to a given formula\&.
.PP
\fBExample\ \&1.\ \&Creating a combination according to a formula.\fR
.PP
mged> \fBc \-c abc (a u b)\-(a + d)\fR
.RS 4
Creates a combination named
\fIabc\fR
according to the formula
\fI(a u b) \- (a + d)\fR\&.
.RE
.SH "AUTHOR"
.PP
BRL\-CAD Team
.SH "BUG REPORTS"
.PP
Reports of bugs or problems should be submitted via electronic mail to
devs@brlcad\&.org
