Repository navigation
feat(ifc): a column drawn as its type's rectangle gets the base quantities its saved mesh gives, its body unchanged (#1705) (RE-425) - #1711
Merged
Conversation
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
The BIM4LCA housing draws 50 of its timber file's 54 columns (and 4 of the concrete file's 7, and 4 of 5 in each terrain file) as the rectangle their type's section gives, and Revit's export writes
Length,CrossSectionArea,OuterSurfaceAreaandGrossVolumeon every one. rvt-rs wrote none of the areas and the volume and 25 of 54 lengths, because neither pass that writes a column's quantities took them: RE-291's box rule takes only a body with no resolved profile (and reads a type'sbandh, where these types name their sectionWidthandDepth), and the saved-mesh pass offers a box's mesh only where no profile is resolved. The mesh Revit saved for such a column is now read for its quantities only, as a beam's (RE-423) and a wall's (RE-388) are, and where it is one closed solid of flat faces that is a prism along the vertical (RE-424) the quantities are written, creatingQto_ColumnBaseQuantitieswhere the column holds none. No value a column holds is replaced and no body changes.On the housing they read equal to Revit's on 52 of the timber file's 54
CrossSectionArea,OuterSurfaceAreaandGrossVolume(from 2), on 54 of 54NetVolumeandLength(from 4 and 25), on 7 of 7 of the concrete file's and 5 of 5 of each terrain file's: 526 values on six files, none different. The four columns of the chamferedConcrete columnfamily, whose rectangle is 0.3% and 1.1% over Revit's section, read Revit's section. The offices are byte-identical. Core Interior (107 columns; its Revit export holds no base quantities) and eight Autodesk MEP samples (4 struts each) gain the same, which no Revit export scores.Closes #1705. The residuals are filed as #1710 (the bodies that stay the rectangle where the section is not one, and the two timber-office lengths).
Motivation
#1705 (the housing's record-box columns), #1203, #1016, #1636; follows RE-424, RE-423, RE-388 and RE-291. The rows were registered on #1636 before the change was written and before its runs were read: #1636 (comment) (the probes' rows) and #1636 (comment) (the probes read, and the change's rows 5 to 10); the results are read against them at #1636 (comment).
Changes
src/ifc/saved_meshes.rs:column_rectangles(the columns whose body is the record box with a resolved profile, read for their quantities whether or not their body is drawn from the mesh),column_mesh_quantities(the mesh's flat-face test, then RE-424'scolumn_quantities), andadd_column_quantities, which now createsQto_ColumnBaseQuantitieswhere a column has none and addsNetVolumewhere absent (a column drawn from a mesh already holds it). The pass adds these columns' ids to what it selects.research/witness/magnetar-2024-core-interior*/observations/rvt-rs.json: Core Interior gains 214IFCQUANTITYAREAand 214IFCQUANTITYVOLUMEentities (885 to 1,099 and 893 to 1,107), taken from Measure'switness-*.jsonof the head and replayed withtools/ci/witness-verdict.pytomatchon all three observations of both artifacts.tools/re/column_added_quantities.py: a body of over 5,000 triangles that nothing was added to is counted, not read (a curved column's axis search took minutes on Snowdon Towers Architectural).docs/format-reconnaissance.mdaddendum.Testing
Measured end to end on the Measure runner (no local builds here; CI builds and tests it; the rule itself is RE-424's, whose pure helpers are unchanged):
WidthandDepth; the 50 columns carryProfileResolvedand noSavedMeshRefusal;timing43000953082 (headc596c666, kept underrefs/archive/2026-11-11/cited/c596c666075f, againstmainatacee45d8, every flag, 126 models each side): 111 exports byte-identical and 15 move, the housing's six files, Core Interior and eight MEP samples; the housing's lines read as registered and none gains adifferentor a value Revit does not write; thebody_sourcesof the 101 models that report them are identical;same-project gatespass on the head;tools/re/ifc_element_diff.pyfinds onlyIfcColumnchanging, only by quantities added: 107 in Core Interior and 4 in each of the eight samples;tools/re/column_added_quantities.pyreads Core Interior's 107 as the rule's value of the exported body and the 32 struts as the mesh's, not the bar's;tools/re/column_quantities_vs_ifc.pyon both sides): the four chamfered columns'rule differentbecomesequal;Row 10 of the registered rows (within the runs' noise, 0.99 to 1.03 in time and memory) is missed for peak memory and the report says so (section 6); the other rows hold as registered.
tools/check-local.sh: not run locally (no local builds here); CI builds and tests itAudit-honesty checklist
changelog.d/added/Legal and contribution hygiene
CreateBeamColumnBaseQuantitiescited by file and function as RE-353 read it (CLEANROOM.md source 5), none of its code copiedBreaking changes
None: no public type or signature changes; a column's export gains quantities it did not write.