Difference between revisions of "MGED CMD r"

(New page: Category:MGED =r= __TOC__ ==Syntax== :r region_name <operation object> ==Argument(s)== : '''region_name''' :: Name of the region to be created or appended to. : '''operation...)
Line 1: Line 1:

Revision as of 12:03, 15 November 2009



r region_name <operation object>


Name of the region to be created or appended to.
Either "+", "-" or "u"
Valid BRL-CAD object in current db.

Return Value(s)

No Return Values for this command.


The "r" command creates a region with the specified region_name. The region is constructed using the list of Boolean operations and object pairs. The operators are represented by the single characters "+," "-," and "u" for intersection, subtraction, and union, respectively. The object associated with each operator may be a combination or a primitive shape. No parentheses or any grouping indication is allowed in the r command. The operator hierarchy for the r command has been established through the ancestry of BRL-CAD and does not conform to accepted standards (see the c command for a more standard implementation). Intersection and subtraction operations are performed first, proceeding left to right; then union operations are performed. BRL-CAD regions are special cases of BRL-CAD combinations and include special attributes. Default values for these attributes may be set using the regdef command. As new regions are built, the default ident number gets incremented. If region_name already exists, then the operation/object pairs get appended to its end.


mged> r new_region u shape1 - shape2 u shape3 + group4
Create a region named new_region that consists of two parts unioned together. The first part is shape1 with shape2 subtracted. The second part is the intersection of shape3 and the combination group4

See Also


Page Generated by David Loman on: 10/11/2007 at: 2:00:42 PM