Apply Fillet or Chamfer Blend
apply_surface_blendUse this when you need to author and evaluate a fillet or chamfer on a kernelCAD Shape. Inserts Shape.fillet(radius, selector, { continuity: G1|G2 }) or Shape.chamfer(distance, selector) through the existing public API and returns the patched source plus evaluation diagnostics. Selectors accept EdgeSelector syntax, including canonical edge refs/query strings or { face: canonical name, face label, or face query }. G2 continuity applies to fillets; chamfer uses the existing chamfer API. This authors the operation and does not extract blend-surface NURBS poles; that still requires kernel surface extraction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Inline .kcad.ts source. | |
| radius | No | Fillet radius in mm; required for operation:'fillet'. | |
| distance | No | Chamfer distance in mm; required for operation:'chamfer'. | |
| selector | No | Optional EdgeSelector: a canonical @kc[...] edge ref/query string or { face: canonical face name, face label, or FaceQuery descriptor }. Omit to select all sharp edges. | |
| operation | No | Operation; defaults to 'fillet'. | |
| continuity | No | Fillet continuity passed to the existing public API; defaults to G1. Chamfer ignores this field. | |
| shape_binding | Yes | Existing Shape variable name to blend. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||