add_polygon
Place a filled or outlined graphic polygon on a PCB layer using 3+ vertices. Ideal for custom silkscreen shapes, logos, or copper areas.
Instructions
Add a graphic polygon.
Args: points: Vertices, each {"x_mm": .., "y_mm": ..} or [x, y]. >= 3 points. layer: Layer name. width_mm: Outline width in mm. filled: Whether the polygon is solid-filled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | F.SilkS | |
| filled | No | ||
| points | Yes | ||
| width_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||