Go to: Synopsis. Flags. Return value. Related. Python examples.
polySubdivideFacet([constructionHistory=boolean], [divisions=int], [mode=int], [name=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polySubdivideFacet is undoable, queryable, and editable.
Subdivides a face into quads or triangles.
In quad mode, a center point is introduced at the center of each face
and midpoints are inserted on all the edges of each face. New faces (all
quadrilaterals) are built by adding edges from the midpoints towards the center.
In triangle mode, only the center point is created; new faces (all
triangles) are created by connecting the center point to all the existing
vertices of the face.
Default : one subdivision step in quad mode (polySubdFacet -dv 1 -m 0;)
constructionHistory, divisions, mode, name
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.
polyAppend, polyAppendVertex, polyBevel, polyChipOff, polyCreateFacet, polyExtrudeEdge, polyExtrudeFacet, polySmooth, polySplit, polySplitVertex, polySubdivideEdge, polyTriangulate
import maya.cmds as cmds
cmds.polyPlane( n='plg', w=10, h=10, sx=1, sy=3 )
#<I>quads</I>
cmds.polySubdivideFacet( 'plg.f[0]', dv=2 ) # becomes 16 quads.
#<I>triangles</I>
cmds.polySubdivideFacet( 'plg.f[2]', dv=1, m=1 ) # becomes 4 triangles