Skip to content

feat(ifc): a stair run with treads and no risers is drawn as its separate treads (#357) - #959

Merged
DrunkOnJava merged 2 commits into
mainfrom
feat/357-riserless-runs
Oct 25, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/357-riserless-runs

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A stair run with treads and no risers is now drawn as its separate treads: one solid per tread, from its riser line to the next, its top at its riser's height and its type's tread thickness deep. The flight of puzzbobb's R2025 model 15 is now Revit's exactly: 9 treads, 4.449648 ft³ where its box was 355.97, every vertex within 2.3e-6 ft. Part of #357.

Motivation

#357: RE-52's profile draws treads and risers as one side view, and a riserless run is several solids, so every riserless run kept its box. Revit's flight on model 15 is 9 separate boxes, exactly 9 times the tread depth, run width and tread thickness (RE-217 §9).

Changes

  • src/partition_stairs.rs: riserless_tread_profiles, one side view per tread for a type with treads and no risers, not monolithic, with no nosing, on a run ending with a riser; run_side_pieces, run_side_profile's one solid where it draws the run, else the treads.
  • src/partition_schema_mvp.rs: both attach paths (2024 byte anchors, 2025 native) call run_side_pieces; push_stair_run_body writes a run's further solids to STAIR_RUN_PIECES_FIELD, and StairRunBody::pieces reads them back.
  • src/ifc/export_content.rs: a run of several solids is written as one IfcTriangulatedFaceSet of their prisms (stair_run_pieces_solid), each turned outward. A run of one solid is the PlacedExtrusion it was.
  • reports/element-framing/RE-217-stair-runs-2025.md §9, docs/status.md, docs/support-matrix.json, README.md (the limitation now names riserless runs with a nosing), changelog.d/added/riserless-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.
  • Verified end to end on real Revit files. Measure 40158238799, this change against main (b7990d3), default models plus -f nordic=true -f r2025=true:
    • R2025 model 15 (Apache-2.0): stair_bodies_vs_ifc match, 4.449648 ft³ against Revit's 4.449648, every vertex within 2.24e-6 ft, every Revit vertex within 1.8e-6 ft of rvt-rs's surface; type_objects_vs_ifc TypeName equal to Revit's 21 to 22 of 25; element_materials_vs_ifc 18 to 19 of 19;
    • every other model's IFC is byte-identical: Core Interior, Einhoven, the four RE1 models, the other 22 R2025 models and both BIM4LCA office files.
  • Witness: Core Interior's export is unchanged.
  • Not re-measured: Snowdon Towers (local only). Its riserless type 1557288 has a 3 in nosing, shaped by its nosing profile family, which is not decoded, so its runs keep their box under this change.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/
  • Resolved limitation updated (support matrix, status, README, RE-217 §6)
  • Limitation documented: riserless runs with a nosing keep their box (README, support matrix, RE-217 §9)
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • Finding recorded as RE-217's addendum

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content
  • No fixtures

Breaking changes

StairRunBody gains a public field, pieces.

Screenshots or output samples

N/A.

Related issues

Refs #357

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 25, 2026 03:58
@DrunkOnJava
DrunkOnJava merged commit 13c14e1 into main Oct 25, 2026
27 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/357-riserless-runs branch October 25, 2026 04:02
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.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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