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


polySewEdge([caching=boolean], [constructionHistory=boolean], [name=string], [nodeState=int], [texture=boolean], [tolerance=linear], [worldSpace=boolean])

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

polySewEdge is undoable, queryable, and editable.

Merge border edges within a given threshold.

Perform pair-wise comparison of selected edges. Pairs whose corresponding vertices meet threshold conditions and whose orientations are aligned (i.e. their respective normals point in the same direction) are merged, as are the vertices (in other words, vertices are shared).

Resulting mesh may have extra vertices or edges to ensure geometry is valid.
Edges must be on the same object to be merged.
Default : share only vertices lying exactly at the same place. (polySewEdge -t 0.0)

Return value

stringThe node name.

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


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


caching, constructionHistory, name, nodeState, texture, tolerance, worldSpace
Long name (short name) Argument types Properties
tolerance(t) linear createqueryedit
The tolerance to sew edges (edge distance)
C: Default is 0.0.
Q: When queried, this flag returns a float.
texture(tx) boolean createqueryedit
If true : texture is sewn as well as the 3d edge.
C: Default is true.
Q: When queried, this flag returns an int.
worldSpace(ws) boolean createqueryedit
This flag specifies which reference to use. If "on" : tolerance value is taken in world reference. If "off" : tolerance value is considered in object reference.
C: Default is "off".
Q: When queried, this flag returns an int.
Common flags
name(n) string create
Give a name to the resulting node.
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.
caching(cch) boolean createedit
Toggle caching for all attributes so that no recomputation is needed
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 have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.polyPlane( sx=1, sy=1, n='plg1' )
cmds.polyPlane( sx=1, sy=1, n='plg2' )
cmds.rotate( 0, 0, 30, 'plg1' )
cmds.rotate( 0, 0, -30, 'plg2' )
cmds.move( -0.5, 0, 0, 'plg1', ws=True )
cmds.move( 0.5, 0, 0, 'plg2', ws=True )
# For the polyUnite we assume that plg1's shape node is named
#  plg1Shape, plg2's shape node is plg2Shape, and the resulting
#  transform is named polySurface1. One or more of these may not
#  hold true if objects have previously been created and
#  manipulated in the scene.
cmds.polyUnite( 'plg1Shape', 'plg2Shape' )
cmds.polySewEdge( 'polySurface1.e[2]', 'polySurface1.e[5]', t=0.25 )