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

Synopsis

polyMergeFacet([constructionHistory=boolean], [firstFacet=int], [mergeMode=int], [name=string], [secondFacet=int])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

polyMergeFacet is undoable, queryable, and editable.

The second face becomes a hole in the first face.
The new holed face is located either on the first, last, or between both selected faces, depending on the mode.

Both faces must belong to the same object.
Facet flags are mandatory.

Flags

constructionHistory, firstFacet, mergeMode, name, secondFacet
Long name (short name) [argument types] Properties
mergeMode(mm) int createqueryedit
This flag specifies how faces are merged: 0: moves second face to first one 1: moves both faces to average 2: moves first face to second one 3, 4, 5: same as above, except faces are projected but not centred 6: Nothing moves.
C: Default is None (6).

In query mode, this flag needs a value.

firstFacet(ff) int createqueryedit
The number of the first (outer) face to merge.

In query mode, this flag needs a value.

secondFacet(sf) int createqueryedit
The number of the second (hole) face to merge.

In query mode, this flag needs a value.

name(n) string create
Name the resulting object.
constructionHistory(ch) boolean createquery
Turn the construction history on or off (where applicable).

In query mode, this flag needs a value.


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 have multiple arguments, passed either as a tuple or a list.

Return value


string The node name.

Related

polyCloseBorder, polyCollapseEdge, polyCollapseFacet, polyDelEdge, polyDelFacet, polyDelVertex, polyMergeEdge, polyMergeVertex, polyQuad, polyReduce, polySewEdge

Python examples

import maya.cmds as cmds

cmds.polyPlane( n='plg', h=10, w=10, sx=5, sy=5 )
cmds.polyChipOff( 'plg.f[16]', 'plg.f[18]', 'plg.f[7]', dup=1, ltz=1, ls=(.5, .5, .5) )

#<i>first</i>
cmds.polyMergeFacet( 'plg', mm=0, ff=16, sf=26 )
#a new face with face #16 as an outer loop and face #26 as a hole
#is replacing faces #16 &amp; #26 and is located on face #16

#<i>between</i>
cmds.polyMergeFacet( 'plg', mm=1, ff=7, sf=25 )
#a new face with face #7 as an outer loop and face #25 as a hole
#is replacing faces #7 &amp; #25 and is located in between.

#<i>last</i>
cmds.polyMergeFacet( 'plg', mm=2, ff=18, sf=25 )
#a new face with face #18 as an outer loop and face #25 as a hole
#is replacing faces #18 &amp; #25 and is located on face #25