Repository navigation
feat(ifc): a floor drawn along its shape-edited plane carries that plane's slope as PitchAngle, as Revit's export writes it (#1193) (RE-384) - #1619
Merged
Conversation
…ane's slope as PitchAngle, as Revit's export writes it (#1193) (RE-384) Revit's export writes Pset_SlabCommon.PitchAngle on the BIM4LCA office's 8 sloped floors, which rvt-rs has drawn along their plane since #1384 and left without the value; the angle of the largest upward face of rvt-rs's own body of each is Revit's to 2e-7 rad. The angle is atan(hypot(a, b)) of the plane z = a*x + b*y + c, written on a floor drawn that way.
… on the office's 8 floors (#1193) (RE-384) The unfiltered Measure 42660463442 of dbf00db against main at 8b8892d: two of 118 exports differ, the office as built and at permit, each by 8 property values; the census's PitchAngle goes from 54 to 62 of 62 equal on both files, the missing values fall by 8, different and the values Revit does not write are unchanged, and no other model's export moves.
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 17:29
13 of 14 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…ngle in the mode without geometry, as a level slab keeps its 0 (#1193) (RE-384) (#1627) ## Summary `rvt-ifc --mode typed-no-geometry` now keeps the `PitchAngle` of a floor drawn along its shape-edited plane, as the geometry modes do since #1619. The rule read the floor's body source after that mode strips it, so the mode left the angle out while a level slab kept its 0. ## Motivation rvtReview's question on #1619: the angle is read after the typed-no-geometry strip, so is that mode meant to leave it out? It was not intended. Revit's export writes the angle whatever the body, and a mode that drops the body should not drop a value that does not come from it. The office's 8 sloped floors per file show it: in the mode without geometry they had no `PitchAngle` at all (8 missing), where the geometry modes write all 62 of the office's values equal to Revit's. ## Changes - `src/ifc/export_content.rs`: the test "is this slab drawn along its shape-edited plane" is `shaped_floor_body`, called twice: before the mode strips the body source (for `PitchAngle`, as `level_slab` is read) and after it (for the plan-profile extrusion kept beside the solid, which stays a body matter and so stays out of a mode without a body). - `changelog.d/fixed/384-shaped-floor-pitch-no-geometry.md`. ## Testing Unit tests are banned in this repository; the change is shown end to end on real files: - [ ] `full / CI passed` on the final head - [x] An unfiltered Measure with every flag and `holdout=true` against `main` (`5247e7ba`), run [42675371568](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42675371568) on `4cbedcb4`: none of the 118 exports moves (every `ifc.sha256` is the base's), and `same-project gates` pass. - [x] The mode itself, on the commit this one replays (same diff, based on #1619's head): Measure [42669538230](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42669538230), `ifc_flags=--mode typed-no-geometry`, both office exports with Revit's set placement on, scorer `psets_vs_ifc`: `Pset_SlabCommon.PitchAngle` equal 54 to 62 and missing 8 to 0 on each; "different" and "values Revit does not write" unchanged. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: no capability statement changes (the mode writes the value the geometry modes already write). - [x] A user-visible change has its entry as a fragment under `changelog.d/fixed/`. - [x] If a limitation was resolved, the docs are updated: none listed. - [x] If a new limitation was introduced, it is documented in the PR body and in-code: none. - [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 - [x] Reverse-engineering finding: none; this orders a read #1619 added (RE-384). ## 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`). Contributor declaration: no format fact is added; the rule and its measurement are #1619's (byte observations of the BIM4LCA office's files, CC BY-SA 4.0, with Revit's own IFC4 exports of them). - [x] No new test fixtures ## Breaking changes None. ## Related issues Refs #1193 (W7), RE-384, #1619.
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 floor drawn along the plane its shape-edited corners lie in (#1384) now carries that plane's slope as
Pset_SlabCommon.PitchAngle, which is what Revit's export writes on the BIM4LCA office's 8 sloped floors. A level floor keeps RE-238's 0, and a floor whose plane is read but not drawn gets none.Motivation
#1193 lists the sloped slabs'
PitchAngleamong W7's remaining values. The property census of the office with Revit's set placement on (Measure 42658128847,mainat060e8f0a) hasPset_SlabCommon.PitchAnglemissing on exactly those 8 slabs (4AP-1base slabs, 4AP-3gutter floors) on each file, with Revit's values 0.0329 to 0.4196 rad. RE-238 left them out because rvt-rs drew them level; #1384 has drawn them along their plane since, and the angle of the largest upward face of rvt-rs's own body of each, measured on its export of the office (Measure 42655806838), is Revit's value to 2e-7 rad on all 8. The report is RE-384.Changes
src/ifc/export_content.rs:add_shaped_floor_pitchwritesPitchAngleasatan(hypot(a, b))of the planez = a·x + b·y + con a floor whoseBodySourcesays it is drawn from that plane (shaped_floor);add_slab_pitchis the one writer of the property, whichadd_level_slab_pitchnow calls with 0.docs/supported-profile.md,docs/release-1.0-criteria.md: the W7 lists name the sloped floors' value.changelog.d/added/384-sloped-floor-pitch-angle.md, the report RE-384.Testing
Unit tests are banned in this repository; nothing here is a pure helper. The change is shown end to end on real files:
full / CI passedon the final headholdout=true, run 42660463442 (headdbf00dbcagainstmainat8b8892df, before feat(ifc)!: every element that would be a box in a Revit 2023 to 2027 file is drawn from the mesh Revit saved for it by default (#1191) #1610). Two of 118 exports move, the office as built and at permit, each by 8 property values (decoded.parameter_value_count);Pset_SlabCommon.PitchAnglegoes from 54 to 62 of 62 equal on both files, the missing values fall by 8 (1,375 to 1,367 and 1,385 to 1,377), different stays 1 and the values Revit does not write stay 1 and 6. The other 116 exports are byte-identical, held-out ones and every Autodesk sample included (none holds a floor drawn along its plane, so the rule is exercised on one project), and no body or other scorer moves.same-project gatespasses; it checks bodies and Areas across saves, which a property does not move. RE-384 section 3.Audit-honesty checklist
changelog.d/added/.DepthandGrossVolumestay out (RE-384 section 4).Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md). Contributor declaration: every fact here comes from byte observations of the BIM4LCA office's files (CC BY-SA 4.0) with Revit's own IFC4 exports of them, and from reading Autodesk's open-source exporter (the slope calculator of revit-ifc, CLEANROOM.md source 5) for what Revit's export writes. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used, and nothing was copied or translated from revit-ifc.Breaking changes
None.
Related issues
Refs #1193 (W7), RE-238, #1384.