pymel.core.modeling.polySewEdge

static modeling.polySewEdge(*args, **kwargs)

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)

Flags:
Long name (short name) Argument Types Properties
caching (cch) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Toggle caching for all attributes so that no recomputation is needed
constructionHistory (ch) bool ../../../_images/create.gif ../../../_images/query.gif
 

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 ../../../_images/create.gif
 
Give a name to the resulting node.
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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 have multiple arguments, passed either as a tuple or a list.

texture (tx) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
If true : texture is sewn as well as the 3d edge. C: Default is true. Q: When queried, this flag returns an int.
tolerance (t) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The tolerance to sew edges (edge distance) C: Default is 0.0. Q: When queried, this flag returns a float.
worldSpace (ws) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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

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 )

Previous topic

pymel.core.modeling.polySetToFaceNormal

Next topic

pymel.core.modeling.polySlideEdge

Core

Core Modules

Other Modules

This Page