decompose — Processes an NMG shape and produces a series of new NMG shapes consisting of each maximally connected shell in the original NMG shape.
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.
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 NMGshape named shape.nmg into maximally connected shells and puts each resulting shell into a separate NMG shape named part_1, part_2, ....
Reports of bugs or problems should be submitted via electronic
mail to <devs@brlcad.org>