Repository navigation
feat(ifc): a spiral stair run with treads and no risers is drawn as its treads, arcs and all (#357) - #966
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 25, 2026 08:01
DrunkOnJava
added a commit
that referenced
this pull request
Oct 25, 2026
…ipes, door sizes and slab outlines (#981) ## Summary The supported profile and the 1.0 criteria caught up with what 0.8.0 has landed so far: stairs (riserless and spiral flights, landings, predefined types, the office's numbers), Revit 2024 pipes, door and window sizes from the record box (RE-218), and the office's slab outlines. The 1.0 criteria named the closed 0.6.x milestone as where the geometry residuals live; they now name 0.8.0 and the W6 census. The copies fragment's slab count is corrected to what `main` measures. ## Motivation `docs/supported-profile.md` is the per-row statement 1.0 is judged by. Its stairs row still said spiral and riserless flights are boxes (drawn since #959 and #966), its pipes row said Revit 2025 only (Revit 2024 since #954), and its doors row did not have RE-218. ## Changes - `docs/supported-profile.md`: the floors, pipes, stairs and doors rows. - `docs/release-1.0-criteria.md`: the W6 row and the closing paragraph name the 0.8.0 milestone and `tools/re/box_bodies_vs_ifc.py`. - `changelog.d/fixed/current-sketch-copies.md`: 62 of 63 office slab outlines on each file with #975 and #978 both on `main` (the fragment's 61 was measured before #975 joined it). ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh`: CI. - [x] Every number is from a Measure run on `main` or the PR that landed it: slab outlines from Measure [40187355859](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40187355859)'s base (`main` 3a3b50a, `plan_profiles_vs_ifc`: 62 of 63 on each office file), pipes from #954, stairs from RE-214 and RE-217, door sizes from RE-218 and #972. `python3 tools/release/changelog.py check` passes. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A user-visible change has its entry as a fragment under `changelog.d/`: docs only, no new entry - [x] Resolved limitation updated (support matrix, status) - [x] Limitation documented: unchanged - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) - [x] Any new test fixtures use synthetic values: none added ## Breaking changes None.
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.
Summary
A spiral stair run with treads and no risers is now drawn as its treads, written as Revit writes them: one
IfcExtrudedAreaSolidper tread, over anIfcIndexedPolyCurvewith two arcs about the spiral's centre and two lines. On the BIM4LCA office the spiral flight 3057703 has Revit's volume (4.540283 ft³ against 4.540287) and height, where it was a 1,307 ft³ box. Part of #357.Motivation
#357: spiral runs were left to their box. The run's native records hold the spiral, and Revit's export of it is exact arcs, which a chord approximation could not match on the scorers' vertex test.
Changes
src/native_stairs.rs:native_spiral_runsreads each spiral run's centre (StairsTreadInfo.m_origin), radii and riser-line angles (m_bndBox), comparing angles modulo a turn, and its type, sharing one extraction pass withnative_runs.src/partition_schema_mvp.rs:attach_spiral_run_bodies(Revit 2024,NATIVE_SPIRAL_RUN_REVIT_VERSIONS) for a run whose type has treads, no risers and is not monolithic; the nosing edge is the line parallel to the next riser line at the type's nosing length (measured: 10.0 mm from the centre in Revit's profile), drawn only on a mirrored run climbing clockwise, as measured.SPIRAL_RUN_*fields,spiral_run_body_from_fields.src/ifc/entities.rs,step_writer.rs,body_geometry.rs,scene_graph.rs:ProfileDef::IndexedPolyCurve(IfcCartesianPointList2D,IfcLineIndex,IfcArcIndex) andSolidShape::Compound(several items in one body representation); GLB and viewer meshes tessellate the arcs.src/ifc/export_content.rs:spiral_run_solid,BodySourcenative_spiral_run_treads.tools/re/stair_bodies_vs_ifc.py: names the farthest vertex of a body that differs.reports/element-framing/RE-217-stair-runs-2025.md§11,docs/status.md,docs/support-matrix.json(element-record-stair-treads),README.md,changelog.d/added/spiral-runs.md.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.sh: CI.main, default models plus-f nordic=true -f r2025=true,stair_bodies_vs_ifcon both BIM4LCA office files (CC BY-SA 4.0):schemacounts 17 more positioned swept solids (18 treads where there was one box).re/357-spiral-runs(Measure 40171074325): the arcs share the tread'sm_origin(radii 1108.969 and 79.066 mm), each arc's middle point is its angular midpoint, one line is radial and the other 10.0 mm from the centre.Audit-honesty checklist
changelog.d/examples/probe_357_spiral_runs.rsis onre/357-spiral-runsLegal and contribution hygiene
Formats/Latest) bynative_document; Revit's tread profile is read from Revit's own IFC export; no Autodesk SDK source, disassembly or NDA material was used.Breaking changes
None for stable users.
ProfileDefandSolidShapegain variants (both#[non_exhaustive]);native_spiral_runsand theSPIRAL_RUN_*items are new in the research surface.Screenshots or output samples
Related issues
Refs #357