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)
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
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. |
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
texture (tx) | bool | ||
|
|||
tolerance (t) | float | ||
|
|||
worldSpace (ws) | bool | ||
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 |
Derived from mel command maya.cmds.polySewEdge
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.polyPlane( sx=1, sy=1, n='plg1' )
pm.polyPlane( sx=1, sy=1, n='plg2' )
pm.rotate( 0, 0, 30, 'plg1' )
pm.rotate( 0, 0, -30, 'plg2' )
pm.move( -0.5, 0, 0, 'plg1', ws=True )
pm.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.
pm.polyUnite( 'plg1Shape', 'plg2Shape' )
pm.polySewEdge( 'polySurface1.e[2]', 'polySurface1.e[5]', t=0.25 )