pcb_bevel_polygon_corners
Bevels the corners of a copper polygon pour by cutting each sharp vertex back along its edges, then repours the polygon. Only straight-outline polygons are modified; arc segments are left untouched.
Instructions
Chamfer the corners of a copper polygon pour.
Replaces each sharp vertex with two points set back along its edges by bevel_mils (auto-clamped so neighbouring bevels never overlap), giving every corner a straight 45-style cut. Only straight-outline polygons are handled, a polygon containing arc segments is left untouched. The polygon is repoured after the edit.
Args: index: Which polygon to bevel (0-based, in board iteration order). net_name: If set, count only polygons on this net when applying index. bevel_mils: Set-back distance per edge (default 25).
Returns: {"beveled", "index", "orig_vertices", "new_vertices", "bevel_mils"}, or an error code (NOT_FOUND / BAD_POLYGON / HAS_ARC).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pcb_bevel_polygon_corners"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| net_name | No | ||
| bevel_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||