Changing the properties of primitive objects

From BRL-CAD
Revision as of 16:02, 27 May 2013 by JoelDBenson (talk | contribs) (Created page with "We have determined the properties of a primitive object. From the mged console, we now wish to change the properties of this o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

We have determined the properties of a primitive object. From the mged console, we now wish to change the properties of this object. The following example demonstrates how to change the height of a right circular cylinder.

The following command can be used to change the height of a right circular cylinder primitive object:


The parameters of many primitive objects can be edited using the Primitive Editor dialog box:

  1. Invoke the GUI Edit-->Primitive Editor command to display that form.
  2. Type the object's name into the Name: field and then click the Reset button to display its current parameter values (and add it to the Display Window if it wasn't previously drawn there).
  3. Interactively edit the object by changing various parameter values. Your changes are immediately written to the database and the Display Window is updated each time you click the Apply or OK button (OK also closes the dialog box). Unapplied changes can be undone by clicking the Reset button.
  4. Repeat the above steps to edit additional objects, or click the OK or Dismiss button to close the dialog.

Alternately, any displayed primitive object can be selected for modification or relocation using either the GUI Edit-->Primitive Selection... or the CLI sed command. Objects that aren't currently displayed will not be listed in the Primitive Selection Menu dialog, and the sed command will display an error message if you attempt to select such an object. In either case, the object could then be selected after using the CLI draw or B command to display it,

Most parameters (including ones not editable from a form) have special items on the edit menu.

Primitive objects can also be edited by using a TCL get command to view its current database entry, then kill that object and recreate it using a TCL put command.

For additional information