Skip to content

feat(ifc): a railing's hidden instances forbidden the targets 53246 are drawn and its flip control is left out of the walk, so 24 railings Revit's exports hold come from their saved meshes (#1635) (RE-397) - #1652

Merged
DrunkOnJava merged 10 commits into
mainfrom
feat/railing-hidden-instances
Nov 10, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

A railing's saved graphics name its parts as instances of other elements. The walk skipped the ones flagged hidden in the normal draw and forbidden the targets 53246, which are the railing's continuous rails and hold up to 59% of its body, and refused a flip control, which is a grip with no surface. Both are read now: 24 railings that Revit's own exports hold are drawn from their saved meshes (bounding box within 0.01 ft of Revit's on all 24, volume within 1% on 19), the four Revit 2025 stairs that aggregate their railings go from 2.6 to 3.0 times Revit's volume to Revit's, and 224 railings of 19 Autodesk samples change from a record box to a saved mesh with no Revit export to score them. Two of the 24, the office's KAI-3, are 19.5% over Revit's volume, all of it in their posts, and on the BIM4LCA housing the row pre-registered on #1636 is not met (31 of 43 and 40 of 56 railings within 2% in volume, under the registered 3 in 4): Revit's export draws round sections as inscribed polygons with few corners, which the volume reads and the vertices do not. The maintainer decided on 2026-11-10 that it ships with the miss stated and the bar not restated; the volume scorer's blindness to a round section is its own follow-up.

Motivation

#1635, and RE-303's open question (why a railing's saved mesh lacks parts of Revit's body). RE-390 disclosed that a stair's volume, the sum of its parts, carried the railing boxes (2 to 127 times Revit's on the office's stairs); RE-397 finds where the missing parts are and closes it on the Revit 2025 stairs.

Changes

  • src/research/native_graphics_traversal.rs: drawn_hidden_instance takes a GInstance of visibility 1 and m_targets 53246, the only restricted pair measured, as drawn; a GBiFlipControl is walked as a branch with no surface, as a curve or a point is. Every other hidden instance stays skipped and every other mask stays refused.
  • probes/examples/probe_re397_*.rs: ten probes (a railing's saved graphics, their tree, the hidden decode, the symbols' meshes, every instance with its symbol's volume, the symbols' trees, which classes the default export draws from a mesh, what each detail level holds, the symbol of a KAI-3 railing's posts, and the copies of its saved graphics).
  • reports/element-framing/RE-397-railing-instances.md, docs/format-reconnaissance.md (addendum), changelog.d/changed/1635-railing-instances.md.

Testing

Unit tests are banned in this repository; none are added.

  • Verified end to end on real Revit files. Measure run 42884022203, unfiltered (nordic, r2025, samples, racadv, bimcollab, holdout), head c12f408c (this change before its rebase onto main, kept under refs/archive/2026-11-10/cited/) against main at 2713ebcb, 118 models on each side: 26 exports move, with no census regression and no body or placement regression; 263 bodies go from a record box to a saved mesh. The later commits add probes, the report and docs only. The same-project gates pass on c12f408c (15 samples held to their earlier saves).
  • Against Revit's own exports: the office (15 of its 41 railings, in both files), the four Revit 2025 Rooms_Stairs models (2 each) and RE1 Architecture (1) are scored, 24 in all. Bounding boxes within 0.01 ft on 24 of 24; volume within 1% on 19 (the ten KAI-4 and the KAI-1 of the office, and the 8 Revit 2025 railings at 1.0000); every vertex of each within 0.01 ft of the other's surface on 11 of the office's 15, and both bars on 9. The other five: two KAI-3 at 1.195 and 1.198, whose excess is in their posts (0.1793 ft3 each in the saved graphics, a round post of 0.328 ft diameter, against 0.1125 in Revit's export, a prism of about 0.256 by 0.204 ft whose corners lie on that circle, an inscribed quadrilateral; the rails are 0.3% over); two small KAI-5 at 0.980, and RE1's at 1.0175, with every vertex within 0.011 ft. The four Revit 2025 stairs' IfcStair volume goes from 25.92, 23.76, 30.93 and 24.99 ft3 to 8.782099, 8.707642, 9.297138 and 15.289523 (Revit's 8.782094, 8.707639, 9.297133, 15.289523).
  • The class census (probe_re397_mesh_classes, Measure 42889243281 on the change and 42889259936 on main): the only class whose saved-mesh bodies change on the office and the 2024 samples is IfcRailing, so the flip control's leaving the walk moves no door, window, fixture or furniture body there.
  • The second project, not met as registered, shipped with the miss stated (the maintainer, 2026-11-10): the row pre-registered on List the shipped rules that rest on one project, and the second model that could test each #1636 (comment) held the rule to the BIM4LCA housing and the timber office. Measure run 42902914843 (head 0e64354c against main at 0bb8067f): 43 housing railings per concrete file and 56 per timber file are drawn from their saved meshes (record boxes 119 to 76 and 132 to 76), bounding boxes within 0.01 ft on all, every stair moves toward Revit's volume, but volume within 2% on 31 of 43 and 40 of 56 (72% and 71%, under 3 in 4); the timber office reads 13 of 15. The outliers' differing shells all read 1.198 to 1.200 and are the 30 mm round rails: Revit's end face is a hexagon inscribed in the circle of rvt-rs's 32-gon (areas 0.00629 and 0.00754 ft2), post hoc and labelled in the result comment and RE-397 section 5.2. The maintainer decided that the rule ships with the miss stated, the bar not restated; the volume scorer's repair is its own pull request with its own pre-registered row.
  • CI runs the gates of tools/check-local.sh; the fast set runs while the PR is a draft and the full set once it is ready.

Audit-honesty checklist

  • Docs reflect the state after this PR: the addendum in docs/format-reconnaissance.md; no public capability table names railing bodies.
  • Changelog fragment under changelog.d/changed/.
  • The limitations are documented here and in the report's section 6: the pair is the only restricted kind measured, what the mask's bits mean is not decoded, the 224 sample railings have no Revit export, 26 railings of the office keep their boxes, the KAI-3 posts and the round rails of the housing (Revit's inscribed polygons, section 5.2), and the 2% and 1.75% are not located.
  • No emojis, no private paths.
  • A reverse-engineering finding: ten probes under probes/examples/ and a dated addendum.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source. Autodesk's open-source exporter revit-ifc was read for what Revit's export writes of a railing, as CLEANROOM.md allows (Source/Revit.IFC.Export/Exporter/RailingExporter.cs, ExportRailing and CollectSubElements, and Source/Revit.IFC.Export/Utility/GeometryUtil.cs, GetIFCExportGeometryOptions and GetOneLevelGeometryElement; report section 8); nothing was copied or translated.
  • No fixtures.

Breaking changes

None to the library's API. A railing's body in an export changes from its record box to its saved mesh where the mesh is whole.

Related issues

Refs #1635 (26 railings of the office keep their boxes, the stair railings among them: the issue stays open), #1624, #1636 (the second-project row), RE-390.

…re drawn and its flip control, which holds no surface, is left out of the walk (#1635) (RE-397)
…ics, their tree, every instance with its symbol's volume, and the symbols' own trees (#1635)
… from a saved mesh and which stay a record box (#1635) (RE-397)
…that the walk skipped and the flip control that is no surface, with the changelog fragment and the reconnaissance addendum (#1635) (RE-397)
…saved graphics holds against Revit's body (#1635) (RE-397)
…e, and of the partitions that hold a copy of their saved graphics (#1635) (RE-397)
…uous rails, puts the KAI-3 excess in its posts, and names the exporter files it read (#1635) (RE-397)
…s not met on the housing, and Revit's export draws round sections as inscribed polygons (#1635) (RE-397)
@DrunkOnJava
DrunkOnJava force-pushed the feat/railing-hidden-instances branch from 0e64354 to a9cde9e Compare November 10, 2026 21:45
…e of the KAI-3 posts' volume, as RE-397 section 5.2 does (#1635) (RE-397)
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