Skip to content

Stage 3a — cone (developable) surface support #138

Closed

Description

@CameronBrooks11

Stage 3a — the first non-cylindrical surface. Cones, like cylinders, are developable: they unroll to a flat sector, so winding paths stay closed-form (no ODE / friction solver). This builds directly on the Stage-2 pattern primitive (#137, ✅) — a new path builder over a z-dependent radius that reuses the same lower_developed_path.

Why now / status

Stage 2 is shipped: pattern.py (PatternSpec) + developed.py (build_*_developed_path + single lower_developed_path), validators are type-checkers over the primitive, and the equivalence harness is in place. Cones are the natural next surface and are unblocked.

Today the surface model is a bare cylinder (MandrelParameters{diameter}; compute_helical_kinematics hardcodes circumference = π·diameter). A cone makes radius z-dependent, so circumference, pitch and dwell vary along z and the development is an unrolled sector rather than a rectangle.

Definition of done

A .wind file with a straight-cone mandrel plans helical (and hoop) layers and emits correct Marlin G-code, gated by the equivalence harness, with the HPR reducer-frustum golden landing. .wind is additively bumped to schemaVersion 1.1. All existing cylinder goldens stay byte-identical.

Slices

Gating & sequencing (decided)

  • First byte-changing slice is S3. That's where helical byte-equality retires and the Stage-2 equivalence harness becomes the live regression gate (coverage invariants + nominal_metrics sim-parity + geometry: slope==α, lean). Cone goldens are added fresh; cylinder goldens stay byte-equal.
  • Schema change is additive (S3): new optional Cone surface → schemaVersion 1.1 (allowed by the ^1\.\d+$ constraint from Fix schemaVersion schema constraint (const 1.0 rejects future minors) #140) + wind-format.md note + format changelog.
  • This epic precedes Epic: open winding-program format — normative SPEC, resolvable $id, conformance corpus #141 (open-format SPEC freeze): promoting the normative versioned SPEC + conformance corpus after cones land means 1.x is stamped over a schema that already includes the near-term cone surface, and the cone golden feeds straight into the corpus.

See docs/development/roadmap.md (Stage 3a). Stage 3b (domes / non-developable, #139) is the later, hardware-gated tier.

Activity

  1. added
    enhancement
    python
    roadmap
    on Jun 25, 2026
  2. added
    epic
    on Jun 29, 2026
  3. CameronBrooks11 commented on Jun 29, 2026

    @CameronBrooks11
    MemberAuthor

    Stage 3a (cones) shipped. All four slices merged to main (@ b878232):

    A reducing frustum is now wound as a geodesic anchored at the large end, exposed additively through .wind. All cylinder goldens stay byte-identical; the cone example is gated by the tolerance-based equivalence harness (its transcendental coordinates aren't bit-stable across platforms).

    Deferred / future (not blocking Stage 3a): expanding cones (r1 > r0), hoop-on-cone, precise cone metrics + an endDiameter G-code header marker, and multi-segment profiles (cylinder-stub joins + Clairaut continuity, the noted S4). Next on the roadmap: open-format groundwork (#141).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepicpythonroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions