Skip to content

ci: the saved-meshes scorer takes the union of the boxes of Revit's bodies that carry one Tag, so a roof written as slab parts is scored against its parts (#1612) - #1631

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/saved-meshes-scorer-tag-union
Nov 9, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/saved-meshes-scorer-tag-union

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

saved_meshes_vs_ifc.py took, for a Tag that several of Revit's bodies carry, the last one's box. Revit writes a roof as an IfcRoof without a body plus one or more IfcSlab parts that carry the roof's Tag, and the element rvt-rs draws whole is all of them. The box of the Tag is now the union of its bodies.

Motivation

#1623 (the roofs drawn from their saved meshes) left three held-out roofs that saved_meshes_vs_ifc put more than 1 ft off while mesh_bodies_vs_ifc put every vertex within 0.001 ft. Measure 42688384777 on the held-out models and the office with this scorer: the roof of every held-out 2024, 2026 and 2027 save is within 0.01 ft of Revit's (counts only), the file-wide offset on the office is 0, and its totals are 11,039 of 11,040 within 0.01 ft. So the 1 ft was the pairing of one Tag with one of its parts, not the roof. (The saves' mesh triangles are wound consistently: no interior edge of a body of the office or of Snowdon Towers is wound against its neighbour, so no volume cancels.)

Changes

  • tools/re/saved_meshes_vs_ifc.py: world_boxes unions the boxes of bodies sharing a Tag.

Testing

  • Verified end to end on real files: Measure 42688384777 (--ref ci/saved-meshes-scorer-tag-union, nordic and holdout, scorer saved_meshes_vs_ifc). A scorer change: no export changes.

Audit-honesty checklist

  • N/A: a measuring tool; no user-visible change.

Breaking changes

None.

Related issues

Refs #1612.

…odies that carry one Tag, so a roof written as slab parts is scored against its parts and not the last one (#1191)
@DrunkOnJava
DrunkOnJava merged commit bf54d5f into main Nov 9, 2026
44 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/saved-meshes-scorer-tag-union branch November 9, 2026 20:19
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