'\" t
.\"     Title: BUILD_REGION
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 08/28/2023
.\"    Manual: BRL-CAD User Commands
.\"    Source: BRL-CAD
.\"  Language: English
.\"
.TH "BUILD_REGION" "nged" "08/28/2023" "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"
build_region \- Builds a region from existing solids that have specifically formatted names based on the provided tags and numbers\&.
.SH "SYNOPSIS"
.HP \w'\fBbuild_region\fR\ 'u
\fBbuild_region\fR [\-a\ \fIregion_num\fR] {\fItag\ start_num\ end_num\fR}
.SH "DESCRIPTION"
.PP
Builds a region from existing solids that have specifically formatted names based on the provided tags and numbers\&. The created region will be named "tag\&.rx," where "x" is the first number (starting from 1) that produces an unused region name\&. If the
\fI\-a\fR
option is used, then the specified "region_num" will be used for "x\&." If that region already exists, this operation will append the new geometry to the existing region definition\&. If that region does not exist, a new one will be created\&. The solids that will be involved in this operation are those with names of the form "tag\&.s#" or "tag\&.s#o@," where "#" is a number between
\fIstart_num\fR
and
\fIend_num\fR
inclusive, "o" is either "u," "\-," or "+," and "@" is any number\&. The operators and numbers coded into the solid names are used to build the region\&.
.SH "EXAMPLES"
.PP
The example demonstrates how to use the
\fBbuild_region\fR
command to build a region from existing solids\&.
.PP
\fBExample\ \&1.\ \&Build a region from existing solids\fR
.PP
mged> \fBbuild_region abc 1 2\fR
.RS 4
Creates a region named "abc\&.r1" consisting of:
.RS 4
u abc\&.s1
.RE
.RS 4
u abc\&.s2
.RE
.RS 4
+ abc\&.s2+1
.RE
.RS 4
\- abc\&.s2\-1
.RE
provided that the above shapes already exist in the database\&.
.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
