Repository navigation
feat(ifc): a column whose mesh is a vertical prism gets the Length, CrossSectionArea, OuterSurfaceArea and GrossVolume Revit's extrusion gives it (#1203) (RE-424) - #1708
Merged
Conversation
…rossSectionArea, OuterSurfaceArea and GrossVolume Revit's extrusion gives it (#1016) (RE-424)
…takes the vertical to the saved-mesh pass's cosine, and a second scorer reads what one export adds to a column's quantities (#1016) (RE-424)
…sm its saved mesh is along the vertical (#1203) (RE-424)
…-check, and corrects RE-423's controls (#1203) (RE-424)
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
A column Revit's export draws as an extrusion holds four base quantities in
Qto_ColumnBaseQuantities(Length,CrossSectionArea,OuterSurfaceArea,GrossVolume) that are the sums of the prism's faces: the extrusion's depth, the area of one end, the lateral area, the volume. rvt-rs wrote them for only some columns (the box rule, RE-291). A column drawn from the mesh Revit saved for it now gets them where that mesh is one closed solid of flat faces with no hole through it, a prism along the vertical with two flat, square ends of one area whose volume is the end area times its extent: RE-423's rule for a beam, with the axis the vertical. They are written where the column's set holds none ofCrossSectionArea,OuterSurfaceAreaandGrossVolume(all four) or all three (theLength); no value a column holds is replaced, and no body orNetVolumechanges.On the BIM4LCA timber office as built they read equal to Revit's on 340 of 344
CrossSectionArea(from 60), 339 of 339OuterSurfaceArea(from 59), 338 of 339GrossVolume(from 58) and 339 of 339Length(from 203), at permit on 336 of 340, 335 of 335, 334 of 335 and 333 of 335; the concrete office at permit gains the four on 6 columns, each of the housing's six files on 1 to 3 columns, and a held-out Revit 2023 model on 4 of its 4 extruded columns. 2,022 values on 580 columns of 10 files, none different, none Revit omits. The 18 cut columns (Revit writesCrossSectionAreaalone on them) get nothing, which the vertical axis alone separates.Refs #1203 and #1016, neither closed: #1203 keeps the check of box-drawn columns' types and #1016 is W7's umbrella. The residual is filed as #1705 (the housing's box-drawn columns, whose box equals Revit's on 46 of 50 and 4 of 4).
Motivation
#1203 (the meshed columns' values), #1016 (W7's quantities), #1636 (second-project measurement); follows RE-423 (beams), RE-291 and RE-353 (the box rule and the cut columns), RE-387 and RE-416 (a column mesh's volume). The report also corrects one number in RE-423's (the controls read 1.01, 0.99, 1.00 and 1.00, not 1.00), which rvtReview found on #1702. The rows were registered on #1636 before the scorer's run was read: #1636 (comment) (points 1 to 5) and #1636 (comment) (points 6 to 9, the change), and the results are read against them at #1636 (comment).
Changes
src/ifc/mesh_volume.rs:longest_flat_prism(the body ofbeam_quantities, which still gives the beam what it gave) andcolumn_quantities, which takes its result when the axis is the vertical (cosine at least 0.9999). Five pure-helper tests of how it fails: a box lying down or wider than it is tall, a slanted beam, a mesh that is not one closed solid, a section of many planes and no triangles, and a column standing on its end as the case it accepts.src/ifc/saved_meshes.rs: the pass readscolumn_quantitieswhere it reads each column's mesh, andadd_column_quantitieswrites the four into the column'sQto_ColumnBaseQuantitieswhere its set holds none of the three or all three. It adds no element to the pass's selection.tools/re/column_quantities_vs_ifc.py(Revit's quantities against the prism of rvt-rs's own body, per Revit set and body source) andtools/re/column_added_quantities.py(what one export adds to another's, against the rule).docs/format-reconnaissance.mdaddendum.Testing
Measured end to end on the Measure runner (no local builds here; CI builds and runs the pure helpers' tests); the helpers compile and pass in a rustc stub harness here:
cc0e59a2, kept underrefs/archive/2026-11-11/cited/cc0e59a2d896, againstmainat16411282, every flag andtiming, 126 models each side): 109 exports byte-identical and 17 move, the housing's six files, the office's three, the held-outmodelo_bimand 7 Autodesk samples; no line ofqtos_vs_ifcorpsets_vs_ifcof any model gains adifferentor a value Revit does not write; thebody_sourcesof the 101 models that report them are identical;same-project gatespass;tools/re/ifc_element_diff.pyfinds onlyIfcColumnchanging, only by quantities added, on 44 columns of 7 samples;tools/re/column_added_quantities.pyreads every added value of those 44 as the rule's value of the column's own mesh (44 of 44,Lengthon 31), and finds no column the rule accepts and the pass reads left without them in the 49 unmoved samples that hold columns (the 14 in Snowdon Towers Architectural are meshes of two or three closed pieces, which the pass refuses);tools/re/column_quantities_vs_ifc.py, both sides): the rule is right on every column the pass reads, refuses the 18 cut columns by their axis, and what it would still add on the timber office reads 0;mainwith fix(research): the saved-mesh pass cuts its batches by the body bytes of the symbols they read, sized before any is decoded (#1694) #1701 and the head merged with it, runs 42987678966 and 42987682914: the ten BIM4LCA files read 0.99 to 1.02 in time and 0.99 to 1.00 in peak memory, the 64 files 0.94 to 1.10 and 0.97 to 1.01 (the 30 samples of 2015 to 2022 read 0.94 to 1.06); pooled, the 7 samples that move read +2.2% against +0.6% for those 30, which is two files (Snowdon Towers Architectural's 28 s andrst_basic2026's 1.1 s), and whether any of it is the change's is not established.Two rows registered on #1636 are missed as worded, and the report says so: row 7's "held-out models' counts do not move" (
modelo_bim's column lines gain 16 equal, nodifferent) and row 8's "0.99 to 1.01" (the runs' own noise is wider, and the files the pass cannot read show it).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.