Skip to content

Add exact signed partial REVOLVE for curved nosings - #63

Draft
aka-blackboots wants to merge 1 commit into
mainfrom
feature/stair-partial-revolve
Draft

aka-blackboots wants to merge 1 commit into
mainfrom
feature/stair-partial-revolve

Conversation

@aka-blackboots

Copy link
Copy Markdown
Contributor

Rounded stair nosings can revolve a profile through a full circle, but partial curved nosings cannot be built exactly: sweeping an arc-edged profile is unsupported and clipping a full torus by a sector reaches an unsupported boolean pair. Add an optional signed angle (radians) to REVOLVE and build its capped partial BRep directly from existing analytic plane, cylinder, cone, sphere and torus surfaces.

Omitting angle preserves the existing full-turn builder. Partial turns share exact boundary edges with planar start/end caps, retain analytic STEP geometry, and reject unresolved cap separation instead of rounding the angle. OG_SUPPORTS_PARTIAL_REVOLVE lets hosts report a missing wrapper capability; an older WASM kernel rejects the unknown angle parameter. Documentation and typed parameters describe the angle convention.

Validation:

  • Native fixtures cover 40 shape/angle combinations and 10 transformed placements with closed BRep validation, analytic volume bounds, JSON roundtrip and STEP export, plus near-zero/near-full precision refusal.
  • Actual WASM/Node REVOLVE tests: 8 passed, including signed 90/270/360-degree rounded profiles, STEP torus surfaces, point classification and preservation after rejected edits.
  • Independent Floorkit integration uses an isolated local artifact: 10 rounded FAN cases across both handednesses and 90/270/360-degree sweeps pass closed-solid validity, Pappus volume and inside/outside classification under rotation 37° and elevation 7.3 m.
  • Build, TypeScript, ESLint and native clippy passed. Broader native tests remain in progress; six stored fixture/hash failures were independently reproduced on clean main 39d2f8d with identical actual/expected failure payloads (two WC hashes and four stored batch/matrix/tessellation cases). No fixtures were rewritten or checks disabled.

This is a dependency companion for Floorkit FLO-642/FLO-649. Package versions and the Floorkit registry dependency on 3.0.1 remain unchanged. Nothing is published, merged or deployed. The final pole-only precision follow-up is covered by native tests; the isolated WASM artifact is being rebuilt from this commit before final review.

This branch has not been deployed

No deployments
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