Repository navigation
fix(ifc): a floor drawn along its shape-edited plane keeps its PitchAngle in the mode without geometry, as a level slab keeps its 0 (#1193) (RE-384) - #1627
Merged
Conversation
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 19:30
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
rvt-ifc --mode typed-no-geometrynow keeps thePitchAngleof 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
PitchAngleat 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" isshaped_floor_body, called twice: before the mode strips the body source (forPitchAngle, aslevel_slabis 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 passedon the final headholdout=trueagainstmain(5247e7ba), run 42675371568 on4cbedcb4: none of the 118 exports moves (everyifc.sha256is the base's), andsame-project gatespass.ifc_flags=--mode typed-no-geometry, both office exports with Revit's set placement on, scorerpsets_vs_ifc:Pset_SlabCommon.PitchAngleequal 54 to 62 and missing 8 to 0 on each; "different" and "values Revit does not write" unchanged.Audit-honesty checklist
changelog.d/fixed/.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md). Contributor declaration: no format fact is added; the rule and its measurement are 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's (byte observations of the BIM4LCA office's files, CC BY-SA 4.0, with Revit's own IFC4 exports of them).Breaking changes
None.
Related issues
Refs #1193 (W7), RE-384, #1619.