The stitchSurface command aligns two surfaces together to be G(0) and/or G(1) continuous by ajusting only the Control Vertices of the surfaces. The two surfaces can be stitched by specifying the two isoparm boundary edges that are to stitched together. The edge to which the two surfaces are stitched together is obtained by doing a weighted average of the two edges. The weights for the two edges is specified using the flags -wt0, -wt1 respectively.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
bias (b) | float | ||
|
|||
caching (cch) | bool | ||
|
|||
cascade (c) | bool | ||
Cascade the created stitch node. (Only if the surface has a stitch history)Default is ‘false’.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
constructionHistory (ch) | bool | ||
|
|||
cvIthIndex (ci) | int | ||
|
|||
cvJthIndex (cj) | int | ||
|
|||
fixBoundary (fb) | bool | ||
|
|||
keepG0Continuity (kg0) | bool | ||
|
|||
keepG1Continuity (kg1) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
numberOfSamples (ns) | int | ||
|
|||
object (o) | bool | ||
|
|||
parameterU (u) | float | ||
|
|||
parameterV (v) | float | ||
|
|||
positionalContinuity (pc) | bool | ||
|
|||
replaceOriginal (rpo) | bool | ||
|
|||
stepCount (sc) | int | ||
|
|||
tangentialContinuity (tc) | bool | ||
|
|||
togglePointNormals (tpn) | bool | ||
|
|||
togglePointPosition (tpp) | bool | ||
|
|||
toggleTolerance (tt) | bool | ||
|
|||
tolerance (tol) | float | ||
|
|||
weight0 (wt0) | float | ||
|
|||
weight1 (wt1) | float | ||
|
Derived from mel command maya.cmds.stitchSurface
Example:
import pymel.core as pm
import maya.cmds as cmds
# Stitch the two surfaces along the two specified surface isoparam with C0 continuity.
# Since wt0 = 0.0, both the surfaces are stitched to surface2.vn[0] really.
pm.stitchSurface( 'surface1.vn[1.0]', 'surface2.vn[0.0]', kg0=False, kg1=True, cascade=False, ns=100, wt0=0.0, wt1=1.0 )