Difference between revisions of "MGED CMD cp"

From BRL-CAD
m
(Just a missing character, and I totally didn't hide the word, "boobies.")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
[[Category:MGED|Cp]]
 
[[Category:MGED|Cp]]
 
+
[[category:MGED object creation|Cp]]
 
=cp=
 
=cp=
 
__TOC__
 
__TOC__
Line 26: Line 26:
 
==Example(s)==
 
==Example(s)==
 
: '''mged>''' cp prim1 prim2
 
: '''mged>''' cp prim1 prim2
:: Make a duplicate of combination prim1 and call it prim.
+
:: Make a duplicate of combination prim1 and call it prim2.
  
 
: '''mged>''' cp comb1 comb2
 
: '''mged>''' cp comb1 comb2

Latest revision as of 19:24, 4 August 2020

cp[edit]

Syntax[edit]

cp from_object to_object


Argument(s)[edit]

from_object
Source db object
to_object
New db object


Return Value(s)[edit]

No Return Values for this command.


Description[edit]

The "cp" command makes a duplicate of an object (shape or combination). If from_object is a shape, then it is simply copied to a new shape named to_object. If from_object is a combination, then a new combination is created that contains exactly the same members, transformation matrices, etc, and it is named to_object.


Example(s)[edit]

mged> cp prim1 prim2
Make a duplicate of combination prim1 and call it prim2.
mged> cp comb1 comb2
Make a duplicate of combination comb1 and call it comb2. Note that this action does not duplicate the members of comb1, just comb1 itself.


See Also[edit]

cpi
push
xpush

Page Generated by David Loman on: 10/11/2007 at: 12:09:35 PM