Repository navigation
feat(ifc): write I-section members' material as a profile set of their section (#94) (RE-105) - #477
Merged
Merged
Conversation
…r section (#94) (RE-105) The 417 beams and columns drawn as their I section take an IfcMaterialProfileSetUsage, one set per type pairing its material with that I, instead of a constituent set. IfcMaterialProfile writes the real profile where the model has one, not a 1 x 1 m stand-in; the schedule names these members' material.
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 10:55
Bugbot couldn't run - usage limit reachedBugbot 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_994ef5e1-c645-414e-821d-c1b24d076e16) |
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
Steel members carry their section as a material profile (RE-105, #94). Every beam and column drawn as its type's I section (#475, #476) is now written with an
IfcMaterialProfileSetUsage, as IFC4 models a profiled member's material, instead of anIfcMaterialConstituentSet:IfcMaterialProfileSetper type, named after it;IfcMaterialProfilepairs the type's one material (RE-82) with anIfcIShapeProfileDefequal to the member's body.IfcMaterialProfileused to be written with a 1 × 1 m rectangle stand-in. It now writes the model's real profile where there is one, and the stand-in only where there is none.Results
tools/re/beam_sections_in_ifc.py, which now checks the material too.tools/ci/ifc_schema_arity.pypasses on the file.rvt-schedule's material column names a one-material profile set's material (Steel), not the set's name.Changes
MaterialProfile.profile;ProfileDefderivesPartialEq.IfcMaterialProfile, and the CardinalPoint comment.material_profile_sets_from_sections.Testing
Unit tests are banned in this repository; none were added.
cargo +1.85.0 check, fuzz workspace check (--locked), andtools/ci/verify-real-files.sh --profile ciwith both corpora.Legal and contribution hygiene
Breaking changes
MaterialProfilegains a field (profile, serde defaultNone).Note
Medium Risk
Changes IFC material association for hundreds of structural elements and adds a serialized field on
MaterialProfile; geometry and other exports stay byte-identical on measured corpora.Overview
Steel members drawn as I sections (377 beams + 40 columns on Snowdon structural) no longer get
IfcMaterialConstituentSet; they are associated viaIfcMaterialProfileSetUsage, with oneIfcMaterialProfileSetper type pairing Steel with anIfcIShapeProfileDefthat matches the member body.The model builder adds
material_profile_sets_from_sections, which moves eligible members off their constituent set, deduplicates sets by type name + profile + material, and setsMaterialProfile.profileto the real section. The STEP writer emits that profile inIfcMaterialProfileinstead of the old 1×1 m rectangle placeholder;ProfileDefgainsPartialEqfor dedup.Downstream: glTF applies material colour from single-material profile sets (same visual result as before);
rvt-schedulereports the profile set’s material name (e.g. Steel) rather than the set name. Docs, changelog, RE-105 report, andbeam_sections_in_ifc.pyare updated to assert profile-set material linkage.Breaking:
MaterialProfileadds optionalprofile(serdedefaultNone).Reviewed by Cursor Bugbot for commit 05a8114. Configure here.