Repository navigation
probe(probes): classify the 18 curtain mullions the office's export gives no Length, before a rule is written (#1046) - #1760
DrunkOnJava wants to merge 4 commits into
Conversation
|
The probe's reading, on today's
Next: for the 6, a rule that takes the length along the mullion's recorded own axis where that axis is vertical. For the 12, the recorded axes themselves have to be printed against Revit's 0.100848 m before any rule is written. This PR stays a probe. |
… probes crate can reach (#1046)
|
A correction to my reading above. This branch predates #1782 (d1a5c0e, on That leaves the 12 short ones. Their recorded axes (own X vertical, own Z horizontal at about 47°) put the absolute axes' determinant at 0.082, under |
…long its own axes down to an axes determinant of 0.05 (#1193) (#1972) ## Summary `ORIENTED_BOX_MIN_DET` goes from 0.1 to 0.05. On the BIM4LCA office that gives 6 short curtain mullions of each concrete file and 8 of each timber file, which had no `Length` on #1193's mullion-Span row, their `Span` and `Qto_MemberBaseQuantities.Length` from the box along their own axes. Revit's `Length` for them is 0.100848 m (0.3309 ft). The other 6 on each concrete file and 4 on each timber file stay on #1193. ## Motivation #1760's probe printed the recorded own axes of the concrete office's 18 mullions without a set (Measure 43545512638). Six are turned 45° about the vertical and get their `Length` from RE-226's rule since #1782. The other 12 have their own X vertical and their own Z horizontal, turned some 45° off the model's axes, so neither model-axis rule applies, and `oriented_box` refused all 12 at the 0.1 cutoff. Their |det| (of the absolute axes) are 0.015, 0.028, 0.039, 0.053, 0.082 and 0.096, two mullions each. The cutoff at 0.05 solves the 6 at 0.053 to 0.096. 3024608 (0.082) gives 0.3306 ft by hand from its record (0.354516 × 0.344793 × 0.164042 ft), 0.0003 ft from Revit's. The 6 at 0.015 to 0.039 solve to the same half-extents (0.082, 0.082, 0.165 ft) but are left: nothing here checks a solve that close to singular. No second condition separates them, since all 12 give positive half-extents. The timber files have no probe output; their 8 and 4 are Measure's counts. ## Changes - `src/ifc/export_content.rs`: `ORIENTED_BOX_MIN_DET` 0.05, with the determinants in its doc. - A changelog fragment. ## Testing Measure [43546686921](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43546686921), unfiltered against `main` with nordic, r2025, samples and holdout. Registered before it runs: 1. On the four office files, `Qto_MemberBaseQuantities.Length` and `Pset_MemberCommon.Span` equal rise by up to 12 each, and "different" does not rise. 2. A mullion or panel whose determinant falls between 0.05 and 0.1 is now drawn as its oriented box rather than its record box. `mesh_bodies_vs_ifc` and `oriented_boxes_vs_ifc` must not get worse on any model, and any `NetVolume` or `NetSurfaceArea` that newly appears must read equal. 3. Held-out counts: no "different" rises. If anything reads different, the cutoff goes back to 0.1 and the 12 stay on #1193. ## Result Measure 43546686921 on head 12a3a5d against main 0ce6c5d: 116 of 120 exports equal, and the 4 that move are the four office files. Only `qtos_vs_ifc` and `psets_vs_ifc` change. Diagnostics differ by `parameter_value_count` alone (+6, +8). | File | `Length` missing | `NetSurfaceArea` missing | different | |---|---|---|---| | concrete office, as built and permit | 12 → 6 | 120 → 111 | 1 → 1 | | timber office, as built and permit | 12 → 4 | 127 → 121 | 1 → 1 | Row 1 holds (up to 12, different does not rise); rows 2 and 3 hold (no other scorer file changes; held-out unchanged). The later commits change only the doc comment and the fragment. - [ ] `tools/check-local.sh`: no local builds; `rustfmt --check` passes; CI runs the rest. ## Audit-honesty checklist - [x] The number in the doc is the one measured by hand; the run decides. - [x] A changelog fragment. Part of #1193.
Summary
The task asks for
Qto_MemberBaseQuantities.Lengthon the 18 curtain mullions of the BIM4LCA office as built that rvt-rs leaves out. I could not establish a rule that is never wrong from the evidence available, because the two IFC files do not say why the code that writes the value drops those 18, and the answer decides whether a rule is possible at all. This pull request therefore adds one probe and changes no export.The 18 are real and not decided anywhere: they are the same 18 the timber office shows (RE-226, RE-418 report 18 there too), no report or issue leaves them out by decision, and the maintainer's closed negative findings (RE-19, RE-20, RE-399) do not touch this value.
Evidence
Where the 18 are.
qtos_vs_ifc.txtof the office as built:Qto_MemberBaseQuantities.Length: 10003, equal 9984, different 1, missing 18, andPset_MemberCommon.Span: 10003, equal 9984, different 1, missing 18. Both are written by one function,export_content::add_mullion_span, which pushesSpanand theLengthof the mullion'sQto_MemberBaseQuantitiestogether and returns before both where the record box gives no positive extent along the mullion's own axis. So the 18 missingLengthare the 18 missingSpan.In
rvt-rs.ifcboth files hold 10,673IFCMEMBER; Revit writes aQto_MemberBaseQuantitieson 10,003 of them and rvt-rs on 10,003. Of rvt-rs's 10,003 sets, 20 hold a single quantity: 18 hold aNetVolumealone (12 at 0.000250 m³, 6 at 0.001750 m³) and 2 hold aLengthalone (0.075634 m, tags 3029301 and the twin of 3028720's neighbour, bothRectangular Mullion:50 x 50 mm alumiini maalattu). 9,985 sets hold aLength= 10,003 − 18, so the 18NetVolume-only sets are exactly the 18 missingLength; theNetVolume-only shape comes fromsaved_meshes::add_mesh_volumes, whose absent-set branch writes a set of justNetVolumefor a member whose mesh closes but for whichadd_mullion_spanwrote nothing.What Revit writes on them, from
psets_vs_ifc.txtline 147:Pset_MemberCommon.Spanmissing values are 6 × 0.7 m and 12 × 0.100847579 m (three float32 spellings of the same value), and those 12 correspond to the 12 sets with a mesh volume of 0.000250 m³ and the 6 to the sets with 0.001750 m³ (0.00175 / 0.7 = 0.0025 m², a 50 mm square; 0.00025 / 0.100848 = 0.00248 m²).I traced tag
3024562(one of the 0.7 m six) in both files: Revit writesQto_MemberBaseQuantitieswithLength700 mm,CrossSectionArea0.0725 m²,NetSurfaceArea0.145 m²,NetVolume0.00175 m³,Span700 mm, and draws the body as anIfcMappedItem; rvt-rs writes the same mullion as a prism 0.7 m long along its own axis, withNetVolumealone. Tag3028722(one of the 12) is, in rvt-rs's export, a body 0.05 m high whose plan section is a ~0.05 × 0.10 m trapezoid, and Revit'sLengthfor it is 0.100848 m. So on both shapes Revit'sLengthis the extent of its own body along the mullion's axis, as RE-418 established for all 10,031 mullions at permit.Why the code drops them, and why I cannot yet tell.
add_mullion_spangives no span where any of these is true: a box field (m_bboxWidth,m_bboxDepth,m_bboxHeight) is missing; the mullion is on the model's axes and the box's extent along the model axis its transform Z lies on (m_curtain_mullion_along) is not positive; the transform gave no axis; or the mullion is turned andoriented_boxleaves its axes undetermined. The three cases are indistinguishable from the two IFC files, and the difference matters:RevitFile::mullion_axes, whichattach_mullion_plain_hostsfills frommullion_box, which needs the record box — so a mullion with no record box has no axis either, and the extent of its body cannot be taken along anything;saved_meshes::follow_mesh_over_box's extent along it (RE-418) could be written;oriented_boxrefuses is not covered by either.The body's own extents are also not safe to use blindly: the 12 are exactly the shape RE-226 names, mullions shorter than their own section, where the longest extent of the body is its section and not its length.
add_mullion_spanwritesLengthon 9,985 of the 10,003 sets and no other code writes, drops or moves it (rg "\"Span\""finds onlyadd_mullion_spanandfollow_mesh_span, which rewrites theSpanof a mullion whoseLengthmoved), so the 18 are lost inside that one function, not later.What is checked and what is left out. Reading the code I also confirmed nothing decides these 18 away:
docs/counted-apart.mdhas no row for them,docs/release-1.0-criteria.mdrecords the one different mullion only, and issue #1046 lists the mullion gaps asNetSurfaceArea, mullionNetVolumeon curved walls and walls, not this.Changes
probes/examples/probe_1046_mullion_length_gaps.rs(new): for every curtain mullion the export gives noLengthbut does give a base quantity set, prints the tag, whetherSpanwas written, the record box's three sides, the axis it runs along, whether its three axes are recorded, the extent of the body the export wrote in the element's frame, and one reason —no_record_box,axes_recorded,box_flat_on_its_axis,no_axisorbox_has_its_extent— with a tally by reason over every curtain mullion on stderr, and the members the export holds no base quantity set for counted apart (Revit writes none on 670 of the office's 10,673IFCMEMBERs either).Run it on the office as built and join the printed tags with Revit's export:
No changelog fragment: nothing a user of the export sees changes, and no doc states a value that moves.
What was not checked
CURTAIN_AXES_FIELDS/CURTAIN_MULLION_ALONG_FIELDand thervt::ifc::entities::{PropertySet, SolidShape}paths are read from the source and fromprobes/examples/probe_re226_mullion_hosts.rs, not from a build. CI's clippy job compiles the probes and will confirm.Lengthon every mullion it covers and on the timber office, the housing and the office at permit, where the same 18 appear.psets_vs_ifc's grouped value list are the same 18 elements as the 18NetVolume-only sets; I inferred it from the count, the sections and the volumes, and the probe's per-tag output with Revit's export will confirm it.Pilot draft: written by an automated worker and pushed as proposed, with rustfmt applied. Not yet read by a maintainer session; please do not review, approve or arm it.