Go to: Synopsis. Return value. Related. Flags. MEL examples.
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)
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 |
|
-texture(-tx)
|
boolean
|
|
|
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)
|
linear
|
|
|
The tolerance to sew edges (edge distance)
C: Default is 0.0.
Q: When queried, this flag returns a float.
|
|
-worldSpace(-ws)
|
boolean
|
|
|
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 |
-caching(-cch)
|
boolean
|
|
|
Toggle caching for all attributes so that no recomputation is needed.
|
|
-constructionHistory(-ch)
|
boolean
|
|
|
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)
|
string
|
|
|
Give a name to the resulting node.
|
|
-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.
|
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];