sew_lines
Join two pattern lines by their indices to create a seam. Specify patterns, lines, and optional stitch directions; flip a direction if the seam twists.
Instructions
Sew one line to another (segment sewing). Get line indices from get_pattern_geometry.
If the seam comes out twisted, sew it again with one direction flipped.
Args: pattern_a: Pattern index of side A. line_a: Line index on side A (outline line, or line of internal_shape_a). pattern_b: Pattern index of side B. line_b: Line index on side B (outline line, or line of internal_shape_b). direction_a: Stitch direction along line A (True = forward). direction_b: Stitch direction along line B (True = forward). internal_shape_a: Sew a line of this internal shape on A instead of the outline. internal_shape_b: Sew a line of this internal shape on B instead of the outline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line_a | Yes | ||
| line_b | Yes | ||
| pattern_a | Yes | ||
| pattern_b | Yes | ||
| direction_a | No | ||
| direction_b | No | ||
| internal_shape_a | No | ||
| internal_shape_b | No |