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

Synopsis

polyQuad [-angle angle] [-constructionHistory boolean] [-keepGroupBorder boolean] [-keepHardEdges boolean] [-keepTextureBorders boolean] [-name string] [-worldSpace boolean]

polyQuad is undoable, queryable, and editable.

Merges selected triangles of a polygonal object into four-sided faces.

Flags

angle, constructionHistory, keepGroupBorder, keepHardEdges, keepTextureBorders, name, worldSpace
Long name (short name) [argument types] Properties
-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.

In query mode, this flag needs a value.

-angle(-a) angle createqueryedit
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 createqueryedit
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 createqueryedit
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 createqueryedit
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 create
Name the resulting object.
-constructionHistory(-ch) boolean createquery
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 be used more than once in a command

Return value


string The node name.

Related

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

MEL examples

polyCube -n plg1 -sx 3 -sy 3 -sz 3 -w 5 -h 5 -d 5; move -5 0 0;
polyCube -n plg2 -sx 3 -sy 3 -sz 3 -w 5 -h 5 -d 5; move 5 0 0;
delete plg1.f[9:17]; polyTriangulate plg1.f[0:44];
delete plg2.f[9:17]; polyTriangulate plg2.f[0:44];
polyMoveVertex -ltz 2.5 plg1.vtx[20:35];
polyMoveVertex -ltz 2.5 plg2.vtx[20:35];

//Only coplanar triangles will be merged.
polyQuad -a 0.0 plg1.f[0:89];
//All possible triangles will be merged.
polyQuad -a 180.0 plg2.f[0:89];