From 511babd6eedd5a461f822f8b9ee318c2a200915e Mon Sep 17 00:00:00 2001 From: Severin Ibarluzea Date: Sat, 25 Oct 2025 12:42:50 -0700 Subject: [PATCH] docs: add cutout element page --- docs/elements/cutout.mdx | 121 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 docs/elements/cutout.mdx diff --git a/docs/elements/cutout.mdx b/docs/elements/cutout.mdx new file mode 100644 index 0000000..8b0946c --- /dev/null +++ b/docs/elements/cutout.mdx @@ -0,0 +1,121 @@ +--- +title: +description: >- + Remove material from a board outline to create slots, notches, or other interior shapes. +--- + +import CircuitPreview from "@site/src/components/CircuitPreview" + +## Overview + +The `` element removes material from a [``](./board.mdx) +outline. Use cutouts to add interior slots, mounting reliefs, wire passages, or +other custom shapes without editing the overall board outline. + +Cutouts are fabricated along with the board outline, so you can preview them in +the PCB view and expect them to be milled or routed during manufacturing. + +## Supported Shapes + +The `shape` prop determines how the cutout is interpreted: + +- `rect` (default) — remove a rectangular slot using `width` and `height`. +- `circle` — remove a circular opening using `radius` or `diameter`. +- `polygon` — remove a custom polygon defined by `points`. + +All shapes support `pcbX` and `pcbY` to position the cutout relative to the +board's origin. Dimensions accept either numbers (treated as millimeters) or +strings like `"3mm"`. + +## Examples + +### Multiple Cutout Shapes on One Board + +This board uses three different cutout shapes: a rectangular USB notch, a cable +pass-through circle, and a decorative polygon. + + ( + + + + + + )`} +/> + +### Rectangular Slot for Connectors + +Rectangular cutouts are ideal for panel-mount connectors or finger slots. Width +and height define the opening size. + + ( + + + + + )`} +/> + +### Circular Cable Relief + +Circular cutouts create pass-throughs for wires or alignment posts. Set either a +`radius` or `diameter` to size the opening. + + ( + + + + + )`} +/> + +### Custom Polygon Cutout + +Pass an array of `{ x, y }` points to `points` for complex shapes. Points are +specified in millimeters relative to the cutout's local origin, which is then +positioned with `pcbX` and `pcbY`. + + ( + + + + )`} +/> + +## Tips + +- Combine cutouts with [``](./hole.mdx) elements when you need both + clearance and mounting hardware on the same edge. +- Keep a small gap between cutouts and copper features to satisfy your + manufacturer’s mechanical clearance rules. +- When exporting fabrication files, cutouts appear on the board outline layer, + so confirm your CAM output shows the expected openings before ordering.