Editing MGED CMD mirror
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: | ||
− | [[Category:MGED | + | [[Category:MGED]] |
− | + | ||
=mirror= | =mirror= | ||
__TOC__ | __TOC__ | ||
==Syntax== | ==Syntax== | ||
− | :mirror | + | :mirror old_object new_object x|y|z |
Line 15: | Line 15: | ||
:: Name of new object to be created | :: Name of new object to be created | ||
− | : ''' | + | : '''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 | + | : '''mged>''' mirror shape1 shape1_mirror x |
:: 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. | ||