DECOMPOSE(nged)

NAME

decompose - Processes an NMG shape and produces a series of new NMG shapes consisting of each maximally connected shell in the original NMG shape.

SYNOPSIS

decompose {NMG_shape} [prefix]

DESCRIPTION

Processes an NMG shape and produces a series of new NMG shapes consisting of each maximally connected shell in the original NMG shape. If an optional prefix is supplied, the resulting NMG 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.

EXAMPLES

The example shows the use of the decompose command (with an optional prefix) to decompose an NMG shape into shells, which are then put into separate, uniquely named NMG shapes.

Example 1. Decompose an NMG shape into shells, which are then put into separate,uniquely named NMG shapes.

mged> decompose shape.nmg part

Decomposes the NMG shape named shape.nmg into maximally connected shells and puts each resulting shell into a separate NMG shape named part_1, part_2, …​.

AUTHOR

BRL-CAD Team

This software is Copyright (c) 1989-2021 by the United States Government as represented by U.S. Army Research Laboratory.

BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org