Skip to content

feat(elements): export roofs from element records as IfcRoof (#323) - #326

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/roof-records
Sep 23, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/roof-records

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Roofs (OST_Roofs, −2000035) are now a recovered element-record category and export as IfcRoof with the record's bounding box. On Snowdon Towers all 20 placed roofs match an IfcRoof in Revit's own IFC4 export by Tag.

Motivation

#323. RE-39 exported stairs as aggregates and left roofs out, because Revit also writes some roofs as aggregates.

Changes

  • src/partition_element_records.rs: OST_ROOFS joins PRODUCT_RECORD_CATEGORIES and RECOVERED_CATEGORIES as class Roof. Roof → IFCROOF already existed in category_map.
  • reports/element-framing/RE-39-stair-aggregates.md §5 "Roofs", the support-matrix row, README, status and CHANGELOG.

Measurements (Snowdon Towers Architectural, local only)

rvt-rs Revit's IFC4 export
placed roof records 20 –
IfcRoof by Tag 20 20 of 20, 0 other

Revit writes 13 of the roofs with a body and 7 as a bodiless IfcRoof aggregating a same-Tag IfcSlab .ROOF.. No decoded byte says which roofs take the second form, so rvt-rs writes every roof as one IfcRoof with its box and does not guess at the decomposition. Core Interior, the RE1 models, Einhoven, teste_export_2025 and Projeto1 have no placed roof records and export unchanged.

Testing

  • tools/check-local.sh
  • Every integration test with the family corpus and the magnetar + RE1 project corpus (43 of 43 test binaries)
  • cargo +1.85.0 check --profile ci --all-targets, cargo +nightly check --manifest-path fuzz/Cargo.toml
  • python -m ifcopenshell.validate (no issues, 127,432 instances) and tools/ci/ifc_schema_arity.py on the Snowdon export

Audit-honesty checklist

  • The support row stays experimental: no licensed CI file has roofs.
  • The 7 roofs Revit decomposes into a slab are stated as a difference, not claimed.
  • No emojis, no private paths.

Legal and contribution hygiene

  • Apache-2.0
  • Clean-room: byte observations scored against Revit's own IFC export. BuiltInCategory names come from the public enum. No SDK source or decompiled material. Snowdon is measured locally and not committed.
  • No PII

Breaking changes

None. PRODUCT_RECORD_CATEGORIES and RECOVERED_CATEGORIES gain one entry each, so their array lengths change.

Related issues

Refs #323.

@cursor

cursor Bot commented Sep 23, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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_9da033e2-b238-4237-b248-3b6e41d33bfc)

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