Repository navigation
feat(elements): draw stair runs ending with a tread and monolithic runs from the run's End with Riser setting (#357) (RE-92) - #464
Merged
Conversation
…ns from the run's End with Riser setting (#357) (RE-92)
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 05:57
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_52a7b372-3c96-4179-a236-56431a5e9a60) |
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
Reads a stair run's "End with Riser" setting and draws the runs RE-52 left as boxes: runs ending with a tread, and monolithic runs (RE-92, #357). A run's element data holds the StairsRun fields in schema order:
The record is taken where its bottom elevation and width equal the run's sketch (RE-52).
Motivation
RE-52 drew 34 of Snowdon Towers' 43 flights. Three runs had one riser line more than risers and kept their box, and so did the monolithic runs. "End with Riser" is 0 on exactly those three runs.
Results
Evidence limit. Snowdon is the only local file with stairs. Monolithic runs are measured on two types; runs ending with a tread on three runs. A slanted run ending with a tread is not measured and is not drawn.
Changes
RunEnds,run_ends_at,scan_run_ends;monolithic_side_profile;run_side_profiletakes the end setting;scan_run_data).attach_stair_run_bodiesaccepts one riser line more than risers on a run ending with a tread.Testing
Unit tests are banned in this repository; none were added. The existing RE-52 tests take the new argument.
cargo +1.85.0 check, fuzz workspace check (--locked), andtools/ci/verify-real-files.sh --profile ciwith both corpora.stair_runs_vs_ifc.py, as in the table.IfcStairFlightbodies change.Legal and contribution hygiene
Formats/Latest, and comparisons with Revit's exported IFC; no Autodesk code.Breaking changes
partition_stairs::run_side_profiletakes a fourth argument, the run's end setting (Option<bool>).Related issues
Refs #357.
Note
Medium Risk
Changes stair extrusion geometry and adds binary parsing of StairsRun flags; scope is limited to Revit 2024 stair runs but alters IFC bodies for affected flights.
Overview
Stair flight geometry now respects Revit’s “End with Riser” flag and can render monolithic runs as a single cast body, so four more Snowdon Towers flights export as stepped geometry instead of bounding boxes (34 → 38 drawn).
The reader locates the
StairsRunrecord in run element data (elevations, width, begin/end-with-riser flags) and matches it to the plan sketch. Runs that end with a tread are allowed one extra riser line vs riser count;run_side_profileextends the top tread to that line. Monolithic types with slanted risers use newmonolithic_side_profile(structural depth below the pitch, floor cut-off).attach_stair_run_bodieswires inscan_run_ends; partition scanning is refactored via sharedscan_run_data. A probe (probe_re92_run_ends) and IFC scorer (stair_runs_vs_ifc.py) document validation; docs/README matrices are updated.Breaking:
partition_stairs::run_side_profilegains a fourth argumentend_with_riser: Option<bool>.Reviewed by Cursor Bugbot for commit ae9ad78. Configure here.