Difference between revisions of "Creating primitive objects"

From BRL-CAD
(created in part from paragraphs moved from BRL-CAD Primitives article)
 
m (polished the article I created a few minutes ago)
 
Line 1: Line 1:
Objects of most such types can be created using any of the following command line (CLI) or menu (GUI) commands:
+
Most types of [[BRL-CAD Primitives|'''primitive geometric objects''']] can be created using any of the following MGED command line (CLI) or graphical user interface (GUI) commands:
 
;[[MGED_CMD_in|'''in''']] : Entering a CLI '''in''' command allows you to interactively create an object with a specified name, type and parameters. That information can either be included in the initial command or provided in response to prompts that are displayed if any required information is omitted from the command line.
 
;[[MGED_CMD_in|'''in''']] : Entering a CLI '''in''' command allows you to interactively create an object with a specified name, type and parameters. That information can either be included in the initial command or provided in response to prompts that are displayed if any required information is omitted from the command line.
 
;'''form''' : Selecting '''Primitive Editor''' from the GUI '''Edit''' menu displays a form/dialog box you can use to name, set the parameters of and then create objects of most (but not all) types. Some derivative objects do not have their own forms, in which case the primitive editor will display the base object's form.
 
;'''form''' : Selecting '''Primitive Editor''' from the GUI '''Edit''' menu displays a form/dialog box you can use to name, set the parameters of and then create objects of most (but not all) types. Some derivative objects do not have their own forms, in which case the primitive editor will display the base object's form.
Line 5: Line 5:
 
;[[MGED_CMD_make|'''make''']] : Entering a CLI '''make''' command also creates and displays an object of a specified type having a specified name and default parameter values.
 
;[[MGED_CMD_make|'''make''']] : Entering a CLI '''make''' command also creates and displays an object of a specified type having a specified name and default parameter values.
  
Note that the Create menu is essentially the GUI equivalent of the CLI make command. After using either, you will generally want to edit the resulting object's default location and size.
+
Note that the Create menu is essentially the GUI equivalent of the CLI make command. After using either, you will generally want to [[Changing the properties of primitive objects|'''edit''']] the resulting object's default location, shape and size.
  
 
Primitive objects can also be created by:
 
Primitive objects can also be created by:
*  
+
* using the CLI [[MGED CMD cp|'''cp''']] command to make a copy of an existing object, which can then be moved and modified;
* using the CLI [[MGED_CMD_dbconcat|'''dbconcat''']] or GUI '''File-->Import''' command to merge in all objects defined by another geometry file, or
+
* using the CLI [[MGED_CMD_dbconcat|'''dbconcat''']] or GUI '''File-->Import''' command to merge in all objects defined by another geometry file; and
* entering TCL '''put''' commands via the CLI.
+
* entering TCL [[MGED_CMD_put_edit_solid|'''put''']] commands via the command window.
 +
 
 +
See also:
 +
 
 +
* [[Determining the properties of primitive objects]]
 +
* [[Changing the properties of primitive objects]]

Latest revision as of 15:46, 27 May 2013

Most types of primitive geometric objects can be created using any of the following MGED command line (CLI) or graphical user interface (GUI) commands:

in 
Entering a CLI in command allows you to interactively create an object with a specified name, type and parameters. That information can either be included in the initial command or provided in response to prompts that are displayed if any required information is omitted from the command line.
form 
Selecting Primitive Editor from the GUI Edit menu displays a form/dialog box you can use to name, set the parameters of and then create objects of most (but not all) types. Some derivative objects do not have their own forms, in which case the primitive editor will display the base object's form.
create 
Selecting an object type from the GUI Create menu displays the object-naming dialog box, then creates and displays an object of that type having default parameter values.
make 
Entering a CLI make command also creates and displays an object of a specified type having a specified name and default parameter values.

Note that the Create menu is essentially the GUI equivalent of the CLI make command. After using either, you will generally want to edit the resulting object's default location, shape and size.

Primitive objects can also be created by:

  • using the CLI cp command to make a copy of an existing object, which can then be moved and modified;
  • using the CLI dbconcat or GUI File-->Import command to merge in all objects defined by another geometry file; and
  • entering TCL put commands via the command window.

See also: