Skip to content

feat(saved-graphics): an instance visible in the normal draw and forbidden the targets 10 is drawn, so 332 bodies of Snowdon Towers Architectural come from their saved meshes and match Revit's export (#1645) (RE-408) - #1664

Merged
DrunkOnJava merged 8 commits into
mainfrom
feat/instance-mask-10
Nov 10, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

The saved-graphics walk draws a GInstance visible in the normal draw (visibility 0) and forbidden the targets 10, which it refused with instance target restrictions are unsupported, keeping the appliances, chairs, sinks and pendant lamps that nest one as record boxes. On Autodesk's Snowdon Towers Architectural 332 bodies now come from their saved meshes, all in Revit's own export, 301 of them within 0.01 ft of it both ways and within 2% of its volume. Six of puzzbobb's Revit 2025 models gain nine window trims and muntins each (54 bodies), all in Revit's export at volume 1.0000. Every other mask stays refused.

Motivation

#1645 (the box-body census): RE-385 section 3.5 left the pendant drops refused with "what would decide it: a file whose Revit export shows a nested instance with these targets drawn or left out". The instance census (probe_1645_instance_masks_by_class, Measure 42908686369 and 42908689958) shows that visibility 0 with targets 10 is the only restricted kind besides RE-397's pair, on 22 housing showers and 554 elements of the 2024 samples, exactly the elements refused for it. Snowdon Architectural's Revit export is the file the question asked for.

Changes

  • src/research/native_graphics_traversal.rs: drawn_visible_instance (16 lines), beside RE-397's drawn_hidden_instance.
  • tools/re/changed_bodies_vs_ifc.py (new): scores the bodies a change draws from saved meshes that its base drew as boxes against Revit's export, by class; it takes Measure's kept exports (keep_ifc=true).
  • reports/element-framing/RE-408-instances-forbidden-targets-10.md, a dated addendum in docs/format-reconnaissance.md, docs/status.md (Snowdon Electrical's 17 boxes are now 1), a pointer from RE-385 section 3.5, and a changed changelog fragment.

Testing

Unit tests are banned here and none is added. Measured on Revit's own exports with the rows registered on #1645 before the run (Measure 42914813217: the change against main at 5dd1277d, keep_ifc=true; the scoring is local, since Snowdon's Revit export has no licence to redistribute); the unfiltered Measure of the final src head 8a364ffc (107 models, every scorer) is 42919909134 and is read below.

Row (registered on #1645) Result
The housing's 22 showers refused for this reason alone are drawn (at least 20) missed: 0 of 22. The housing's exports are byte-identical: the next refusal, scaled instance mode is not qualified, keeps them (run 42918771368)
At least 90% of those drawn on the housing read within 0.01 ft both ways or explained not exercised: none is drawn
On Snowdon Architectural, of the elements refused for this reason alone that Revit's export holds, at least 90% drawn have every vertex within 0.01 ft both ways and their volume within 2% holds: 301 of 332 (90.7%)
Nothing else moves holds on the files the row names; the rule reaches further than the row named. Of the 12 files scored, 2 move (Snowdon Architectural by 332 bodies, Electrical by 16) and the BIM4LCA files are byte-identical. The unfiltered run moves 8 of 107 exports: those two and six Revit 2025 models (below); the other 99 are byte-identical

Snowdon Architectural against Revit's export, per class (tools/re/changed_bodies_vs_ifc.py): 274 proxies (274 within both bars), 21 chairs (21), 21 kitchen sinks (6: the other 15 have rvt-rs's vertices 0.01062 ft from Revit's surface with the volume 1.0033), 16 art-glass pendants (0: volume 1.044 to 1.101 of Revit's with every vertex within 0.0093 ft, the bulb tessellated coarser in Revit's export). All 332 are in Revit's export.

The unfiltered run (42919909134) also moves six of puzzbobb's Revit 2025 models, r2025-12 to r2025-17: each gains nine IfcBuildingElementProxy (three Muntin Pattern_2x2, three Trim-Window-Exterior-Flat:with Sill, three Trim-Window-Interior-Flat:Picture Frame) drawn from saved meshes that were record boxes. All 54 are in Revit's export at volume ratio 1.0000 with every vertex within 2.03e-6 ft both ways (mesh_bodies_vs_ifc: saved-mesh bodies scored 4 to 13, 8 to 17, 8 to 17, 8 to 17, 6 to 15, 4 to 13; record boxes 9 to 0, 10 to 1 in four of them, 13 to 4). Nothing else of the six differs. The 2025 models were not in the mask census, so that their instances carry the pair is read from the exports moving with this one rule.

Not measured

  • The housing's showers, and so the mask on the BIM4LCA project: none of them is drawn. The Revit 2025 models exercise it on a second release.
  • What the bits of m_targets mean: the rule is the measured pair (visibility 0, 10); every other mask stays refused and none of the files has a mask with bit 0 set.
  • The other 146 bodies of Snowdon Architectural refused for the mask: 102 chairs meet nonrectangular parametric trim and 42 of 44 proxies face regions need subdivision.
  • Snowdon Electrical's 16: no export scores them.

Reproduce

gh workflow run measure.yml --ref main -f ref=019a2c056148b4cc3b2680b511b2ff60e0634738 -f base=main -f nordic=true \
  -f samples=true -f sample_years="2024 2024" \
  -f models="nordic-housing-concrete-as-built nordic-housing-timber-as-built sample-2024-snowdon_towers_sample_architectural" \
  -f scorers="mesh_bodies_vs_ifc saved_meshes_vs_ifc box_bodies_vs_ifc" -f keep_ifc=true
python3 tools/re/changed_bodies_vs_ifc.py base/sample-2024-snowdon_towers_sample_architectural/model.ifc \
  head/sample-2024-snowdon_towers_sample_architectural/model.ifc "<local Revit IFC4 export of Snowdon Towers Sample Architectural>"

# the unfiltered run
gh workflow run measure.yml --ref main -f ref=8a364ffc066cad9d20f214d9ebb4b1d2b1d21c1d -f base=main \
  -f nordic=true -f r2025=true -f samples=true

Audit-honesty checklist

  • README and docs reflect the state after this PR: docs/status.md's sentence about Snowdon Electrical's boxes is updated, and nothing is claimed that is not shipped
  • The change has its fragment under changelog.d/changed/
  • A reverse-engineering finding: probe probe_1645_instance_masks_by_class (archived with the refusal branches) and a dated addendum in docs/format-reconnaissance.md
  • No emojis, no private paths, no personal addresses

Legal and contribution hygiene

  • Apache-2.0; no Autodesk source, decompiled internals or NDA content (CLEANROOM.md); no fixtures added

Breaking changes

None. 332 bodies of one sample, 16 of another and 54 of six Revit 2025 models change from a record box to a saved mesh, as the default saved-mesh policy intends.

…idden the targets 10 is drawn, so the elements it refused can come from their saved meshes (#1645) (RE-408)
…10: drawn, 332 bodies of Snowdon Towers Architectural match Revit's export, the housing's showers meet the next refusal (#1645) (RE-408)
…moves: 54 window trims and muntins that match Revit's export at volume 1.0000 (#1645) (RE-408)
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