Editing Changing the properties of primitive objects
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | We have [[Determining the properties of primitives|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: | |
− | # Invoke the GUI '''Edit-->Primitive Editor''' command to display that | + | # Invoke the GUI '''Edit-->Primitive Editor''' command to display that form. |
− | # Type the object's name into the '''Name:''' field and then click the '''Reset''' button to display its | + | # 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). |
− | # Interactively | + | # 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. |
# Repeat the above steps to edit additional objects, or click the '''OK''' or '''Dismiss''' button to close the dialog. | # 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= | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |