Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

polyMirrorFace [-caching boolean] [-constructionHistory boolean] [-direction int] [-mergeMode int] [-mergeThreshold linear] [-mergeThresholdType int] [-mirrorAxis int] [-mirrorPosition linear] [-name string] [-nodeState int] [-pivot linear linear linear] [-pivotX linear] [-pivotY linear] [-pivotZ linear] [-worldSpace boolean]

polyMirrorFace is undoable, queryable, and editable.

Mirror all the faces of the selected object.

Return value

stringThe node name.

In query mode, return type is based on queried flag.

Related

polyAppend, polyAppendVertex, polyBevel, polyChipOff, polyCreateFacet, polyExtrudeEdge, polySmooth, polySplit, polySplitVertex, polySubdivideEdge, polySubdivideFacet, polyTriangulate

Flags

caching, constructionHistory, direction, mergeMode, mergeThreshold, mergeThresholdType, mirrorAxis, mirrorPosition, name, nodeState, pivot, pivotX, pivotY, pivotZ, worldSpace
Long name (short name) Argument types Properties
-direction(-d) int create
This flag specifies the mirror direction.
C: Default is 0
-mergeMode(-mm) int create
This flag specifies the behaviour of the mirror with respect to the border edges. Valid values are 0-5, corresponding to +X, -X, +Y, -Y, +Z, -Z direction respectively.
If the mode is 0, the border edges will not be merged (co-incident vertices will be present).
If the mode is 1, the border vertices/edges will be merged
If the mode is 2, the border edges will be extruded and connected.
C: Default is 0
-mergeThreshold(-mt) linear create
This flag specifies the tolerance value for merging borders.
C: Default is 0.1
-mergeThresholdType(-mtt) int create
This flag specifies if the merge threshold is calculated automatically based on the average length of the border edges.
-mirrorAxis(-ma) int create
This flag specifies what method to use to define the mirror axis
-mirrorPosition(-mps) linear create
This flag specifies the position of the custom mirror axis plane
-pivot(-p) linear linear linear create
This flag specifies the pivot for the mirror.
C: Default is computed using the bounding box of the object
-pivotX(-px) linear create
This flag specifies the X pivot for the mirror.
C: Default is computed using the bounding box of the object
-pivotY(-py) linear create
This flag specifies the Y pivot for the mirror.
C: Default is computed using the bounding box of the object
-pivotZ(-pz) linear create
This flag specifies the Z pivot for the mirror.
C: Default is computed using the bounding box of the object
-worldSpace(-ws) boolean createqueryedit
This flag specifies which reference to use. If "on" : all geometrical values are taken in world reference. If "off" : all geometrical values are taken in object reference.
C: Default is off.
Q: When queried, this flag returns an int.
Common flags
-caching(-cch) boolean createedit
Toggle caching for all attributes so that no recomputation is needed.
-constructionHistory(-ch) boolean createquery
Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object.
Note: If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.
-name(-n) string create
Give a name to the resulting node.
-nodeState(-nds) int createqueryedit
Defines how to evaluate the node.
  • 0: Normal
  • 1: PassThrough
  • 2: Blocking
  • 3: Internally disabled. Will return to Normal state when enabled
  • 4: Internally disabled. Will return to PassThrough state when enabled
  • 5: Internally disabled. Will return to Blocking state when enabled

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Mirror about +X direction by merging the border vertices
polyCube -name poly1;
delete poly1.f[4];
polyMirrorFace -direction 0 -mergeMode 1 poly1;

// Mirror about +Y direction by connecting the border edges
// in world reference, by explicitly specifying a pivot point (0, 2, 0)
polyCube -name poly2;
delete poly2.f[4];
rotate -r -os 0 0 45 poly2;
polyMirrorFace -direction 2 -p 0 2 0 -mergeMode 2 -worldSpace 1 poly2;