Go to: Synopsis. Flags. Return value. Related. Python examples.
polyQuad([angle=angle], [constructionHistory=boolean], [keepGroupBorder=boolean], [keepHardEdges=boolean], [keepTextureBorders=boolean], [name=string], [worldSpace=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polyQuad is undoable, queryable, and editable.
Merges selected triangles of a polygonal object into four-sided
faces.
angle, constructionHistory, keepGroupBorder, keepHardEdges, keepTextureBorders, name, worldSpace
| Long name (short name) |
[argument types] |
Properties |
worldSpace(ws)
|
boolean
|
 
|
|
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.
In query mode, this flag needs a value.
|
|
angle(a)
|
angle
|
 
|
|
Angle threshold above which two triangles are not merged.
C: Default is 30 degrees. The range is [0.0, 180.0].
Q: When queried, this flag returns a float.
In query mode, this flag needs a value.
|
|
keepGroupBorder(kgb)
|
boolean
|
 
|
|
Keep facet group border :
If "on", the borders of selected faces are maintained,
otherwise the borders of selected facets may be modified.
C: Default is "on".
Q: When queried, this flag returns an int.
In query mode, this flag needs a value.
|
|
keepHardEdges(khe)
|
boolean
|
 
|
|
Keep hard edges :
If "on", the hard edges of selected faces are maintained,
otherwise they may be deleted between two triangles.
C: Default is "on".
Q: When queried, this flag returns an int.
In query mode, this flag needs a value.
|
|
keepTextureBorders(ktb)
|
boolean
|
 
|
|
Keep texture border :
If "on", the borders of texture maps are maintained,
otherwise the boreders of texture maps may be modified.
C: Default is "on".
Q: When queried, this flag returns an int.
In query mode, this flag needs a value.
|
|
name(n)
|
string
|
|
|
Name the resulting object.
|
|
constructionHistory(ch)
|
boolean
|

|
|
Turn the construction history on or off (where applicable).
Q: When queried, this flag returns an int.
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.
|
string The node name.
polyCloseBorder, polyCollapseEdge, polyCollapseFacet, polyDelEdge, polyDelFacet, polyDelVertex, polyMergeEdge, polyMergeFacet, polyMergeVertex, polyReduce, polySewEdge
import maya.cmds as cmds
cmds.polyCube( n='plg1', sx=3, sy=3, sz=3, w=5, h=5, d=5 )
cmds.move( -5, 0, 0 )
cmds.polyCube( n='plg2', sx=3, sy=3, sz=3, w=5, h=5, d=5 )
cmds.move( 5, 0, 0 )
cmds.delete( 'plg1.f[9:17]' )
cmds.polyTriangulate( 'plg1.f[0:44]' )
cmds.delete( 'plg2.f[9:17]' )
cmds.polyTriangulate( 'plg2.f[0:44]' )
cmds.polyMoveVertex( 'plg1.vtx[20:35]', ltz=2.5 )
cmds.polyMoveVertex( 'plg2.vtx[20:35]', ltz=2.5 )
#Only coplanar triangles will be merged.
cmds.polyQuad( 'plg1.f[0:89]', a=0.0 )
#All possible triangles will be merged.
cmds.polyQuad( 'plg2.f[0:89]', a=180.0 )