Stitch SOP

From TouchDesigner 088 Wiki


The Stitch SOP is used to stretch two curves or surfaces to cover a smooth area. It can also be used to create certain types of upholstered fabrics such as cushions and parachutes.

If a second input is given, it must contain one surface that the primitives in the first input can stitch to. The left input can contain either faces or surfaces; in either case, each primitive in the first input is stitched to a parametric area of the surface in the second input in such a way that the parametric area allocated to each primitive is the same and the size of all areas added together equals the parametric range specified in the R Width (see below).

Please refer to the Align SOP for a discussion of "left" and "right" primitives as well as the option of an auxiliary input.

PythonIcon.png stitchSOP_Class


Group /group - Which primitives to stitch. If blank, it stitches the entire input. Accepts patterns, as described in Pattern Matching.

Stitch /stitchop - Stitches sub-groups of n primitives or patterns of primitives.

N /inc - The value entered for N determines the pattern of primitives stitched.

Wrap Last to First /loop - If enabled, it connects the beginning of the first primitive in the left input to the end of the last primitive in the same input. If only one primitive exists, its ends will be stitched together.

Direction /dir - Allows stitching along either the U or V parametric direction.

Tolerance /tolerance - This parameter minimizes modification to the input sources. A smaller value creates less modification.

Bias /bias - Determines which primitive remains unaffected. The values go from 0 - 1, where 0 - first, and 1 - last.

Left UV / Right UV /leftuv1 /leftuv2 /rightuv1 /rightuv2 - Point on each left / right primitive at which to begin / end the stitch.

LR Width /lrwidth1 /lrwidth2 - The first value represents the width of the left stitch. The second value represents the width of the right stitch.

Stitch /dostitch - If selected, move a single row from each primitive to coincide.

Tangent /dotangent - If selected, modifies neighbouring rows on each primitive to create identical slopes at the given rows.

Sharp Partials /sharp - If selected, creates sharp corners at the ends of the stitch when the stitch partially spans a primitive.

Fixed Intersection /fixed - When the tangent option is on, this option allows some flexibility as to which side of each slope is modified.

LR Scale /lrscale1 /lrscale2 - Use this parameter to control the direction and position of the tangential slopes.

See Also