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

Synopsis

polySewEdge [-caching boolean] [-constructionHistory boolean] [-name string] [-nodeState int] [-texture boolean] [-tolerance linear] [-worldSpace boolean]

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.

Related

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

Flags

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
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 be used more than once in a command.

MEL examples

polyPlane -sx 1 -sy 1 -n plg1;
polyPlane -sx 1 -sy 1 -n plg2;
rotate 0 0 30 plg1; rotate 0 0 -30 plg2;
move -ws -0.5 0 0 plg1; move -ws 0.5 0 0 plg2;
// 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.
polyUnite plg1Shape plg2Shape;
polySewEdge -t 0.25 polySurface1.e[2] polySurface1.e[5];