Mirrors an object (shape or combination) across a given axis (x by default). If from_object is a shape, then it is copied to a new shape named to_object that is mirrored across the given axis. If from_object is a combination, then a new combination is created that contains exactly the same members naned to_object. Transformation matrices are added to mirror it across the requested axis. The -x, -y, & -z options tell the command which axis to mirror the object. The -p can be used to specify a point to mirror about, and the -d can be used to specify a direction vector to mirror about.
The example shows the use of the mirror command to mirror an object across the y axis.
Example 1. Mirror an object across an axis.
mged>
mirror -y solid.s mir_solid.s
Creates a copy of solid.s that is mirrored across the y axis and named mir_solid.s
The example shows the use of the mirror command to mirror an object across a plane of x=100.
Example 2. Mirror an object across an plane parallel to an axis.
mged>
mirror -x -o 100 solid.s mir_solid.s
Creates a copy of solid.s that is mirrored across a plane parallel to the x axis at x=100 and named mir_solid.s
The example shows the use of the mirror command to mirror an object about a given point.
Example 3. Mirror an object about a given point.
mged>
mirror -p "0 1000 0" -y solid.s mir_solid.s
Creates a copy of solid.s that is mirrored across a plane parallel to the y axis at the point 0, 1000, 0 and named mir_solid.s
Reports of bugs or problems should be submitted via electronic
mail to <devs@brlcad.org>