Skip to content

feat(planning): developed-surface hoop lowering (S3) - #302

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/297-s3-developed-hoop
Jun 29, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/297-s3-developed-hoop

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Part of the Stage 2 epic #137 (slice S3, #297). Cuts hoop planning over to the developed-surface primitive built in S2 — the α→90° case feeding the same lower_developed_path.

What's here

  • build_hoop_developed_path — hoop as a developed-surface path: axial pitch = tow width (mandrel turns wind_length/tow_width per pass), delivery-head lean 90 − atan(D/tow_width). Mirrors the legacy emission.
  • Generalized lower_developed_path with two flags so one lowering serves both patterns:
    • emit_initial_set_position — hoop has no initial G92 (its mandrel angle stays absolute); helical re-zeros.
    • terminal — a terminal hoop omits the return pass and the closing zero_axes.
  • Renamed build_developed_path → build_helical_developed_path for symmetry; plan_hoop_layer is now a 3-line delegation.
  • Harness: assert_hoop_geometry (hoop lays at the densest-wrap angle atan(circ/tow_width) — deliberately not 90° and not the head lean) + hoop unit tests, incl. a terminal-hoop exact-prefix check.

Byte-clean (goldens unchanged)

Byte-identical to the prior emitter for terminal and non-terminal hoop — verified against the hoop fixture, both pure-hoop example programs, and the hoop segment of multi_layer. So byte-equality stays retained (consistent with S2); nothing regenerated. An adversarial review confirmed the byte-identity holds by construction (same operands/order; lock=180 from hoop_spec; rad_to_deg ≡ math.degrees).

Verification

  • Full suite 187 passed; goldens byte-equal; ruff format/ruff check/mypy clean.
  • Independent review gate: no blockers; one test-strength fix applied (terminal hoop now asserted as an exact prefix of non-terminal).

Not in this slice

Skip cutover + deleting the thin per-pattern wrappers is S4; validators-as-type-checkers + docs is S5.

Stage 2 / S3 (#297). Cut hoop over to the developed-surface lowering, as the
alpha->90 case feeding the same WinderMachine lowering as helical. Add
build_hoop_developed_path (axial pitch = tow width, so the mandrel turns
wind_length/tow_width times per pass and the head leans 90 - atan(D/tow_width));
generalize lower_developed_path with two flags -- emit_initial_set_position
(hoop has no initial G92) and terminal (skip the closing zero_axes) -- and
rename build_developed_path -> build_helical_developed_path for symmetry.
plan_hoop_layer collapses to a 3-line delegation.

Output is byte-identical to the prior emitter (terminal + non-terminal), so the
hoop fixture and the pure-hoop example goldens stay byte-equal. Extend the
equivalence harness with assert_hoop_geometry (hoop lays at the densest-wrap
angle atan(circ/tow_width), distinct from 90 and from the head lean) and add
hoop unit tests incl. a terminal-hoop prefix check.

Refs #137.
@CameronBrooks11
CameronBrooks11 merged commit e3a7f9e into main Jun 29, 2026
21 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/297-s3-developed-hoop branch June 29, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant