Skip to content

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
DrunkOnJava merged 2 commits into
mainfrom
feat/sloped-floor-pitch-angle
Nov 9, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/sloped-floor-pitch-angle

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

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' PitchAngle among W7's remaining values. The property census of the office with Revit's set placement on (Measure 42658128847, main at 060e8f0a) has Pset_SlabCommon.PitchAngle missing on exactly those 8 slabs (4 AP-1 base slabs, 4 AP-3 gutter 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_pitch writes PitchAngle as atan(hypot(a, b)) of the plane z = a·x + b·y + c on a floor whose BodySource says it is drawn from that plane (shaped_floor); add_slab_pitch is the one writer of the property, which add_level_slab_pitch now 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 passed on the final head
  • Verified end to end on real Revit files: the unfiltered Measure with every flag and holdout=true, run 42660463442 (head dbf00dbc against main at 8b8892df, 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.PitchAngle goes 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 gates passes; it checks bodies and Areas across saves, which a property does not move. RE-384 section 3.
  • If this touches the IFC exporter: the witness verdicts replay. Core Interior's export and both witness observations are byte-identical on both sides of the run, so no observation changes.

Audit-honesty checklist

  • README / docs reflect the current state after this PR: the supported profile and the 1.0 criteria's W7 list.
  • A user-visible change has its entry as a fragment under changelog.d/added/.
  • If a limitation was resolved, the docs are updated: RE-384 section 3, the supported profile and the 1.0 criteria's W7 list.
  • If a new limitation was introduced, it is documented in the PR body and in-code: the rule rests on the office's 8 floors (one project); the sloped floors' Depth and GrossVolume stay out (RE-384 section 4).
  • 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
  • Reverse-engineering finding: the report RE-384.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see 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.
  • No new test fixtures

Breaking changes

None.

Related issues

Refs #1193 (W7), RE-238, #1384.

…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
DrunkOnJava marked this pull request as ready for review November 9, 2026 17:29
@DrunkOnJava
DrunkOnJava merged commit 5247e7b into main Nov 9, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/sloped-floor-pitch-angle branch November 9, 2026 18:24
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.
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