Difference between revisions of "MGED CMD mirror"

(New page: Category:MGED =mirror= __TOC__ ==Syntax== :mirror old_object new_object x|y|z ==Argument(s)== : '''old_object''' :: Valid BRL-CAD Primitive : '''new_object''' :: Name of new objec...)
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:MGED]]
+
[[Category:MGED|Mirror]]
 
+
[[Category:MGED object generators|Mirror]]
 
=mirror=
 
=mirror=
 
__TOC__
 
__TOC__
  
 
==Syntax==
 
==Syntax==
:mirror old_object new_object x|y|z
+
:mirror -x|-y|-z old_object new_object
  
  
Line 15: Line 15:
 
:: Name of new object to be  created
 
:: Name of new object to be  created
  
: '''x|y|z'''
+
: '''-x|-y|-z'''
 
:: Axis to mirror across
 
:: Axis to mirror across
  
Line 24: Line 24:
  
 
==Description==
 
==Description==
The "mirror" command creates new_object by duplicating old_object and reflecting it along the indicated axis. If old_object is a primitive shape, then a new shape is created, with parameters adjusted to accomplish the mirror operation. If old_object is a combination, then new_object will simply be a copy of old_object with all of its members’ matrices set to perform the appropriate reflection.
+
The "mirror" command creates new_object by duplicating old_object and reflecting it along the indicated axis. If old_object is a primitive shape, then a new shape is created, with parameters adjusted to accomplish the mirror operation. If old_object is a combination, then new_object will simply be a copy of old_object with all of its members’ matrices set to perform the appropriate reflection.
 
+
  
 
==Example(s)==
 
==Example(s)==
: '''mged>''' mirror shape1 shape1_mirror x
+
: '''mged>''' mirror -x shape1 shape1_mirror
 
:: Make a copy of shape1, name it shape1_mirror, and adjust its parameters so that it is a mirror image of shape1 across the yz plane.
 
:: Make a copy of shape1, name it shape1_mirror, and adjust its parameters so that it is a mirror image of shape1 across the yz plane.
  

Latest revision as of 00:49, 4 January 2010

mirror[edit]

Syntax[edit]

mirror -x|-y|-z old_object new_object


Argument(s)[edit]

old_object
Valid BRL-CAD Primitive
new_object
Name of new object to be created
-x|-y|-z
Axis to mirror across


Return Value(s)[edit]

No Return Values for this command.


Description[edit]

The "mirror" command creates new_object by duplicating old_object and reflecting it along the indicated axis. If old_object is a primitive shape, then a new shape is created, with parameters adjusted to accomplish the mirror operation. If old_object is a combination, then new_object will simply be a copy of old_object with all of its members’ matrices set to perform the appropriate reflection.

Example(s)[edit]

mged> mirror -x shape1 shape1_mirror
Make a copy of shape1, name it shape1_mirror, and adjust its parameters so that it is a mirror image of shape1 across the yz plane.


See Also[edit]

No related commands.



Page Generated by David Loman on: 10/11/2007 at: 1:52:26 PM