Repository navigation
feat(planning): developed-surface hoop lowering (S3) - #302
Merged
Merged
Conversation
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.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 samelower_developed_path.What's here
build_hoop_developed_path— hoop as a developed-surface path: axial pitch = tow width (mandrel turnswind_length/tow_widthper pass), delivery-head lean90 − atan(D/tow_width). Mirrors the legacy emission.lower_developed_pathwith two flags so one lowering serves both patterns:emit_initial_set_position— hoop has no initialG92(its mandrel angle stays absolute); helical re-zeros.terminal— a terminal hoop omits the return pass and the closingzero_axes.build_developed_path → build_helical_developed_pathfor symmetry;plan_hoop_layeris now a 3-line delegation.assert_hoop_geometry(hoop lays at the densest-wrap angleatan(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=180fromhoop_spec;rad_to_deg ≡ math.degrees).Verification
ruff format/ruff check/mypyclean.Not in this slice
Skip cutover + deleting the thin per-pattern wrappers is S4; validators-as-type-checkers + docs is S5.