add_internal_shape
Draw internal lines or shapes on CLO3D patterns for fold lines, darts, or pocket placement by specifying points and optional closure.
Instructions
Draw an internal line or shape on a pattern (fold lines, darts, pocket placement...).
Args: pattern_index: Pattern to draw on. points: [[x, y], ...] or [[x, y, type], ...] in pattern coordinates (mm), inside the piece (CLO also accepts points outside it); type 0 = straight, 2 = spline curve, 3 = bezier curve. Use get_pattern_geometry for the piece's coordinates. closed: Connect the last point back to the first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| closed | No | ||
| points | Yes | ||
| pattern_index | Yes |