'\" t
.\"     Title: DECOMPOSE
.\"    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 "DECOMPOSE" "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"
decompose \- Processes an NMG shape and produces a series of new \fINMG\fR shapes consisting of each maximally connected shell in the original \fINMG\fR shape\&.
.SH "SYNOPSIS"
.HP \w'\fBdecompose\fR\ 'u
\fBdecompose\fR {\fINMG_shape\fR} [\fIprefix\fR]
.SH "DESCRIPTION"
.PP
Processes an NMG shape and produces a series of new
\fINMG\fR
shapes consisting of each maximally connected shell in the original
\fINMG\fR
shape\&. If an optional prefix is supplied, the resulting
\fINMG\fR
shapes will be named by using the prefix and adding an underscore character and a number to make the name unique\&. If no prefix is supplied, the default prefix "sh" will be used\&.
.SH "EXAMPLES"
.PP
The example shows the use of the
\fBdecompose\fR
command (with an optional prefix) to decompose an NMG shape into shells, which are then put into separate, uniquely named NMG shapes\&.
.PP
\fBExample\ \&1.\ \&Decompose an NMG shape into shells, which are then put into separate, uniquely named NMG shapes.\fR
.PP
mged>
\fBdecompose shape\&.nmg part\fR
.PP
Decomposes the
\fINMG\fRshape named
\fIshape\&.nmg\fR
into maximally connected shells and puts each resulting shell into a separate
\fINMG\fR
shape named
\fIpart_1, part_2, \&.\&.\&.\&.\fR
.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
