# NativeCAD 0.30.1 "Kletzki": continuity by tool, what each one builds and what it measures

**No tool is added or removed in 0.30.1 (200 tools; command schema 1.95.0).** The other changes in this release are in the CHANGELOG entry. This note is the reference for G0 to G4 across the kernel: for each tool, the highest level it BUILDS (the surface is constructed to that level) and what it only MEASURES (the level is read back from the finished faces, and the tool says so when the result falls short). Read the limits column before relying on a level.

Words used here. G0: faces meet. G1: tangent planes agree. G2: normal curvature agrees. G3 and G4: its rate of change and the next one agree. "Measured" means signed jets taken from exact derivatives on the published body (`ops/contactJets.js`, `ops/surfaceAnalysis.js`), not read from the op's own plan. Worst values are in `docs/BLEND_EVALUATION.md`, sections 5.12 to 5.41.

## What each tool builds, and what it measures

| Tool and case | BUILDS | MEASURES | Limits | Test |
|---|---|---|---|---|
| `cad_fillet_edges`, edge blend, default | G1 rolling-ball arc | G0 to G4 per strip, on the body | corners are separate rows below | `tests/test_cadsf-433.js` |
| `cad_fillet_edges` `continuity` "G2", `crossSection` "conic" | G2 section; the conic section is G1 with an adjustable shape | G0 to G4 per strip | opt in; the default result is byte-identical | `tests/test_cadsf-3380.js` |
| `cad_fillet_edges` `continuity` "G3" | G3 between planes, and between a plane and a parallel-axis cylinder | G0 to G4 per strip | straight edges only; cone, sphere, torus and B-spline supports refuse by surface type | `tests/test_cadsf-433.js` (planes), `tests/test_cadsf-3437.js` (plane and cylinder) |
| `cad_fillet_edges` `continuity` "G4" | G4 on plane/plane and plane/parallel-cylinder strips | G0 to G4 per strip, in the section report | along the strip, not at corners; the validator now lists G1 to G4 | `tests/test_cadsf-3454.js` |
| `cad_fillet_edges` on a solid of revolution (rim blends) | G2, G3 and G4 on plane, cylinder and cone supports (the section is revolved exactly) | G0 to G4 at both rims | straight meridians only; sphere, torus and B-spline supports are not built | `tests/test_cadsf-3453.js` |
| `cad_fillet_edges` variable radius, `law` "cubic" | radius C2 in arclength (periodic round a loop, natural at a chain's ends); the band stays G1 | the law's residual and joint jumps (`lawContinuity`) | where the base curvature jumps (line to arc) the slope is held flat so the band stays G1; a C2 radius law does not give a G2 band there | `tests/test_cadsf-3433.js` |
| `cad_face_blend`, rolling ball | G1 | G0 to G4 per band | planes and parallel-axis cylinders | `tests/test_cadsf-3437.js` |
| `cad_face_blend` `crossSection` "g2", "g3", "g4" | G2, G3, G4 sections between planes and parallel-axis cylinders | signed jets at both contacts; the next level is reported, not claimed | refused on a hold line, on a split side set, and on a full round of 180 degrees or more (its apex join is G2 only) | `tests/test_cadsf-3437.js` |
| `cad_face_blend`, plane and sphere | the rolling ball as an exact torus; "g2", "g3", "g4" as an exactly revolved section | signed jets at both contacts | plane and sphere, whole rings only; cone, torus and B-spline supports are not built | `tests/test_cadsf-3458.js` (rolling ball), `tests/test_cadsf-3459.js` (g2 to g4) |
| `cad_face_blend`, plane and non-parallel cylinder | the rolling ball as an exact rational pipe round the elliptic spine (not fitted) | G0 and signed G1 at both contacts | rolling ball only: "conic", "g2", "g3" and "g4" sections are refused by name on this pair | `tests/test_cadsf-3462.js` |
| `cad_face_blend` hold curves | a G1 band, exact rather than fitted, on a plane and a cylinder; a partial hold runs out to a constant radius on a curvature-continuous foot curve | G0 and signed G1 against the given curve and both supports | the hold band is G1: G2 is not claimed across it | `tests/test_cadsf-3418.js`, `tests/test_cadsf-3416.js`, `tests/test_cadsf-3417.js` |
| `cad_fillet_edges` setback and N-sided corners | G0 across the spokes, G1 to the bands and faces (valence 3 to 6, unequal radii, saddle and all-concave vertices, wall and curved-cap far ends) | G0 and signed G1 at the contacts | the corner is G1, not G2: the signed curvature jump at a corner is nonzero and is reported | `tests/test_cadsf-3411.js`, `tests/test_cadsf-3412.js`, `tests/test_cadsf-3452.js`, `tests/test_cadsf-3413.js`, `tests/test_cadsf-3457.js` |
| `cad_fillet_edges` G2 corner patch | G2 where three convex G2 strips meet at a trihedral vertex | G2 at every join | convex trihedral vertices only | `tests/test_cadsf-3193.js` |
| `cad_net_surface`, `cad_boundary_surface` | G2 across every shared spoke of an N-sided fill, from a guide surface the fan is fitted to (G1 before 0.30.1) | signed G0, G1 and G2 at 64 stations on every network curve, plus a fold scan | G2 is held to a small measured jump, not zero: worst 2.78 % on one hexagon spoke where its cross curvature changes sign; `requireContinuity` "G2" turns a shortfall into a refusal; no op-level continuity parameter | `tests/test_cadsf-3177.js`, `tests/test_cadsf-3461.js` |
| `cad_fill_patch` | G0, G1 or G2 on the sides you ask for | per side G0, G1 (degrees) and G2 (relative) on the published sheet, plus a fold scan | a side that falls short is reported by name; a ring whose sheet folds is refused or warned, never returned silently; G3 and G4 sides are not claimed here | `tests/test_cadsb-100703-freeform-honesty.js`, `tests/test_cadsb-2176.js`, `tests/test_cadsb-2169.js`, `tests/test_cadsb-2177.js` |
| `match_network` (a `cad_build_plan` op; no new MCP tool) | G1, G2 or G3 across every shared boundary of a B-spline patch network in one least-change solve, corners included: grids, stars, mixed networks with extraordinary vertices, networks wrapped round a cylinder and closed tubes | gap, kink and signed G2 / G3 on the faces read back from STEP, per boundary; the next order up is reported as not met | the reachable level depends on patch degree (bicubic G1 or G2, quartic G2, quintic G3); a degree that cannot reach it is refused with the degree that would (`NETWORK_DEGREE_LOCKED`); G4 is asked for but generally not met; closed networks without a free side are refused (`NETWORK_LAYOUT_CLOSED`) | `tests/test_cadsf-3173.js`, `tests/test_cadsf-3471.js`, `tests/test_cadsf-3472.js` |
| `cad_match_surface` | G1 to G4 on an existing B-spline face against its neighbour | the order met per side; refuses when it cannot be met | B-spline sheets; a B-spline target at G4 needs refinement along | `tests/test_cadsf-3172.js` |
| `cad_fit_curve`, `cad_fit_surface` `continuity` "G2", "G3", "G4" | cubic, quartic, quintic with simple interior knots (C2, C3, C4) | the knot-line analyser agrees on the class | a degree that cannot reach the level is refused | `tests/test_cadsb-100703-smooth-fit.js` |
| `cad_g4_sweep`, `cad_blend_loft` | closed G4 sweeps, revolves, tubes and collars; section-blend lofts with C4 skins | a measured G4 certificate on the result | the builders' own shapes only | `packages/mcp/test/g4-sweep.test.js`, `tests/test_cadsf-3347.js` |
| `cad_surface_analysis` `kind` "knots", and `checkFull` | nothing | G0 to G4 class of every interior knot line of every B-spline face and edge curve | read-only | `tests/test_cadsb-100703-knot-continuity.js`, `tests/test_cadsf-102760-edge-knot-continuity.js` |
| `cad_surface_analysis` continuity | nothing | G0 to G2 across a shared edge, from exact surface derivatives | read-only | `tests/test_cadsf-2179.js` |
| cross-face join measure (`ops/crossContinuity.js`) | nothing | G0 to G4 across a join between two B-spline faces; the test grades a ladder of deliberate breaks as G4, G3, G2, G1, G0 | measured only: a G3 join between two existing faces is not built by this measure | `tests/test_cadsf-3268.js` |

## Evidence

* **The ring box.** The shipped ring box page lists 36 designed bodies, all 36 with a G4 certificate (`web/ring-box/facts.json`, read by `tests/test_cadsf-102904_ring_box_page.js`). The certificate is what the G4 builders measured on the finished solids.
* **The F1 car.** The same G4 builders (`demos/ring_box/g4.js`) build the car's skins and plates. `tests/test_cadsb-2066.js` pins that those solids come out consistently oriented and pass the local checks (42 of 64 car bodies failed them before). The car's own continuity certificate is not part of the shipped data, so this note claims orientation and validity for the car, not a G4 level.

## What this note does not claim

* No tool blends two arbitrary existing faces to G3 or G4. `match_network` reaches G3 across a network's shared boundaries by changing the patches themselves; the cross-face measure only reports a level.
* Face-blend G3 and G4 are on planes, parallel-axis cylinders, solids of revolution and a plane with a sphere. Not on cone, torus or B-spline supports, and not on a plane with a non-parallel cylinder (that pair has the G1 rolling ball only).
* Edge G4 is along the strip, not at corners. Setback corners are G1. Net-surface G2 across N-sided spokes is built to a small measured jump, not exactly zero.
