Skip to content

fix(ifc): a curtain mullion turned off the model's axes is measured along its own axes down to an axes determinant of 0.05 (#1193) - #1972

Merged
DrunkOnJava merged 3 commits into
mainfrom
fix/1193-short-mullions
Nov 14, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
fix/1193-short-mullions

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

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, 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

  • The number in the doc is the one measured by hand; the run decides.
  • A changelog fragment.

Part of #1193.

…long its own axes down to an axes determinant of 0.05, which gives the office's 12 short mullions their Length (#1193)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 03:33
@DrunkOnJava
DrunkOnJava merged commit 0fe9879 into main Nov 14, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1193-short-mullions branch November 14, 2026 03:48
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