Brlcad/How to mged/region

From Wikibooks, open books for an open world
Jump to: navigation, search

Shape regions are created by performing boolean geometric union, intersection and subtraction operations.

Creating a region from a list of shapes[edit]

The r command is used to create a region from a list of shapes. Note that the shapes must have been created in the database for the operations to work:

# Create a region named region1.r that consists of a union
# of the objects sph1.s and sph2.s
r region1.r u sph1.s sph2.s