Go to: Synopsis. Flags. Return value. Related. Python examples.
polySewEdge([constructionHistory=boolean], [name=string], [texture=boolean], [tolerance=float], [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)
constructionHistory, name, texture, tolerance, worldSpace
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, polyQuad, polyReduce
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 )