You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Railings are written as record boxes, about a thousand times Revit's volume, and now sit inside their stairs #1635
rvt-rs writes a railing as its record box where the railing's saved mesh is not whole (RE-303, #1247). Revit's railing is a thin body, so the box is far too large: in Measure 42688171578 (head a43f517d, 34 models with a box scorer file) the 109 railings written as boxes across 11 models have a median fill (Revit's volume divided by the box's) of 0.001. No other class is near that: sanitary terminals 0.198, building element proxies 0.144, windows 0.119, doors 0.254, furniture 0.062; members, columns and plates are 1.0 (the box is the body).
Since #1626 the railings of a stair are parts of its IfcStair, so the stair's volume as the sum of its parts now carries the boxes: on the BIM4LCA office, 13 stairs go from within 1 percent of Revit's volume to 2 to 127 times it (stair 2598347: 100.9 ft3, 707.6 with the boxes, Revit 101.6; 12 others about 110 to 117 ft3 against 3,600 to 4,100). A viewer shows the same boxes as before, inside the stair that owns them.
Done when
A railing's body is Revit's, or the railing writes no body, where the saved mesh is not whole. Which of the two is the open question: RE-303 section 3 does not say why a railing's saved mesh lacks parts of Revit's body (rails and balusters may be drawn by other elements' graphics).
Measured
box_bodies_vs_ifc.txt per class, counted over the Measure run above (gh run download 42688171578 -n measure-head).
partition_element_record_bbox is the BodySource of all 5 railings read under two office stairs (2598347, 2859203).
First result of the question the issue leaves open (why a railing's saved mesh is not whole). probe_re397_railing_saved_graphics (Measure 42874785566, the BIM4LCA office as built and at permit, and two R2025 stair models) prints, for each BaseRailing the export writes, what the saved scene holds for it. The office's 41 railings split in two:
22 Railing:KJO-1 (the stair railings, most of them aggregated under their stair since feat(ifc): a railing that belongs to a stair is aggregated under it, as Revit's export aggregates it (#1624) #1626): the saved graphics record exists and is empty. 0 primitives, 0 triangles, no diagnostic (decoded_saved_graphics), in both files. There is no mesh to draw: the file stores no geometry for them, so only a rebuild from the railing's type and path could replace their boxes. Revit's export writes each as 7 to 15 IfcPolygonalFaceSets (two read: 2598353 has 7, 2859214 has 15).
18 Railing:KAI-1 to KAI-6: the saved mesh is partial. KAI-4 1467318 holds 30 primitives and 60 triangles against 6 face sets in Revit's export; every one reports a reachable GBiFlipControl (RE-303), and some add edge is not an isoparametric interval (KAI-2), edge changes its fixed parameter (KAI-5, KAI-6) or unsupported surface HermiteSurf (KAI-6). The two R2025 stair models' railings hold 6 primitives and 12 triangles, also with a flip control.
So the thousand-fold boxes are two different problems: no stored geometry (22) and geometry Revit stores in a form the reader does not take whole (18). The next probe (probe_re397_railing_graphics_tree, queued) prints the graph of one railing of each type, to see what the flip control gates.
Measure 42880570119 (probe_re397_railing_instances, branch probe/re397-railing-instances, the office as built) lists every GInstance of the 41 railings' saved graphics and the volume of the symbol each names, read as an element of its own.
The 240 instances are of two kinds only, all rigid (their matrices are orthonormal, so a symbol's volume is the instance's):
19 visible and unrestricted: flags 557060, visibility 0, m_targets 0. The traversal draws them.
221 hidden in the normal draw and restricted: flags 557092, visibility 1, m_targets 53246. The traversal skips them as hidden, and would refuse them for the restriction if it did not.
Against Revit's body volume of each railing (the office's IFC export):
railings
visible instances alone
visible plus the restricted instances
KAI-4, 10 railings
0.385 to 0.437
1.0000 to 1.0016
KAI-5, 2903645 and 2903804
0.541
0.980
KAI-1, 1485880 (no restricted instance)
1.0002
1.0002
KAI-3, 2614259 and 2618205
1.195 and 1.198
the same
KAI-2, 1749890 and 2902063
0.612
the same
KAI-5, 2598350
0.170
0.170
KAI-6, 3076853
0
0
KJO-1, 22 stair railings
0
0.020 to 0.029
So the 59% of a KAI-4 railing's body that RE-303 found missing is in the instances the traversal skips twice. What the rest need is different: KAI-3's saved mesh is 19.5% over Revit's body (parts Revit does not draw, or counts once), KAI-2, KAI-5 and KAI-6 lose faces to the parametric reader (shared curved edge ..., 105 diagnostics on KAI-6), and the 22 KJO-1 railings hold only restricted instances whose symbols are mostly nested detail-family filters and refused faces. Next: the symbols' own trees (what the flip control sits beside in KAI-4 and in KAI-3).
Where the railings stand on main (8529bb01), counted from saved_meshes_vs_ifc and box_bodies_vs_ifc on every model with a Revit export (Measure 43656305014, base side):
Drawn from their saved meshes, every bounding box within 0.01 ft of Revit's body:
BIM4LCA housing: 43 and 43 (concrete), 56 and 56 (timber). Their four terrain files: 2 each.
The office's two terrain files: 1 each. RE1 Architecture: 1.
The Revit 2025 stair models 13 to 16: 2 each.
The BIM4LCA office: 39 of 40 as built and at permit, the fortieth within 0.1 ft.
Still drawn as their record box (3):
Railing:KAI-6 on the office, as built and at permit. Revit's body fills 0.1% of the box.
The 2 railings of 17_Rooms_Stairs_Spiral (R2025). Revit's body fills 1.9% of the box.
So the issue's count of railings written as boxes "about a thousand times Revit's volume" is down to these three on the measured models. What is owed is unchanged for them: Revit's body, or no body where the saved mesh is not whole. Which saved-mesh refusal keeps each one a box is the next thing to read. The office's refusals are counted by kind in diagnostics.json and not by element. A spiral stair's railing follows a helix, which the mesh walk may refuse as a GHermiteSpline profile curve (19 such refusals on the office).
The three railings still drawn as their record box all refuse their saved mesh for one reason: SavedMeshRefusalpartial: unsupported surface HermiteSurf. That covers the office's Railing:KAI-6 (3076853, also #1191's row 3d railing) and 17_Rooms_Stairs_Spiral's 13680 and 13684, read from the IFCs kept by Measure 43663939560. So what is left here waits on reading HermiteSurf faces, which draft #1941 does. Once it lands, these three either come from their meshes, each scored against Revit's body, or stay with the reason that then applies.
Activity
DrunkOnJava commentedon Nov 10, 2026
First result of the question the issue leaves open (why a railing's saved mesh is not whole).
probe_re397_railing_saved_graphics(Measure 42874785566, the BIM4LCA office as built and at permit, and two R2025 stair models) prints, for eachBaseRailingthe export writes, what the saved scene holds for it. The office's 41 railings split in two:Railing:KJO-1(the stair railings, most of them aggregated under their stair since feat(ifc): a railing that belongs to a stair is aggregated under it, as Revit's export aggregates it (#1624) #1626): the saved graphics record exists and is empty. 0 primitives, 0 triangles, no diagnostic (decoded_saved_graphics), in both files. There is no mesh to draw: the file stores no geometry for them, so only a rebuild from the railing's type and path could replace their boxes. Revit's export writes each as 7 to 15IfcPolygonalFaceSets (two read: 2598353 has 7, 2859214 has 15).Railing:KAI-1toKAI-6: the saved mesh is partial. KAI-4 1467318 holds 30 primitives and 60 triangles against 6 face sets in Revit's export; every one reports a reachableGBiFlipControl(RE-303), and some addedge is not an isoparametric interval(KAI-2),edge changes its fixed parameter(KAI-5, KAI-6) orunsupported surface HermiteSurf(KAI-6). The two R2025 stair models' railings hold 6 primitives and 12 triangles, also with a flip control.So the thousand-fold boxes are two different problems: no stored geometry (22) and geometry Revit stores in a form the reader does not take whole (18). The next probe (
probe_re397_railing_graphics_tree, queued) prints the graph of one railing of each type, to see what the flip control gates.DrunkOnJava commentedon Nov 10, 2026
Measure 42880570119 (
probe_re397_railing_instances, branchprobe/re397-railing-instances, the office as built) lists everyGInstanceof the 41 railings' saved graphics and the volume of the symbol each names, read as an element of its own.The 240 instances are of two kinds only, all rigid (their matrices are orthonormal, so a symbol's volume is the instance's):
m_targets0. The traversal draws them.m_targets53246. The traversal skips them as hidden, and would refuse them for the restriction if it did not.Against Revit's body volume of each railing (the office's IFC export):
KAI-4, 10 railingsKAI-5, 2903645 and 2903804KAI-1, 1485880 (no restricted instance)KAI-3, 2614259 and 2618205KAI-2, 1749890 and 2902063KAI-5, 2598350KAI-6, 3076853KJO-1, 22 stair railingsSo the 59% of a
KAI-4railing's body that RE-303 found missing is in the instances the traversal skips twice. What the rest need is different:KAI-3's saved mesh is 19.5% over Revit's body (parts Revit does not draw, or counts once),KAI-2,KAI-5andKAI-6lose faces to the parametric reader (shared curved edge ..., 105 diagnostics onKAI-6), and the 22KJO-1railings hold only restricted instances whose symbols are mostly nested detail-family filters and refused faces. Next: the symbols' own trees (what the flip control sits beside inKAI-4and inKAI-3).research(railings): the probes behind RE-397: a railing's saved graph…
research(railings): a probe of which classes the default export draws…
docs(re): RE-397 reports the instances of a railing's saved graphics …
research(railings): a probe of what each detail level of a railing's …
research(railings): a probe of the partitions that hold a copy of a r…
research(railings): the copies probe frames a channel 103 record by i…
feat(ifc): a railing's hidden instances forbidden the targets 53246 a…
research(railings): the probes behind RE-397: a railing's saved graph…
21 remaining items
DrunkOnJava commentedon Nov 15, 2026
Where the railings stand on
main(8529bb01), counted fromsaved_meshes_vs_ifcandbox_bodies_vs_ifcon every model with a Revit export (Measure 43656305014, base side):Railing:KAI-6on the office, as built and at permit. Revit's body fills 0.1% of the box.17_Rooms_Stairs_Spiral(R2025). Revit's body fills 1.9% of the box.So the issue's count of railings written as boxes "about a thousand times Revit's volume" is down to these three on the measured models. What is owed is unchanged for them: Revit's body, or no body where the saved mesh is not whole. Which saved-mesh refusal keeps each one a box is the next thing to read. The office's refusals are counted by kind in
diagnostics.jsonand not by element. A spiral stair's railing follows a helix, which the mesh walk may refuse as aGHermiteSplineprofile curve (19 such refusals on the office).DrunkOnJava commentedon Nov 15, 2026
The three railings still drawn as their record box all refuse their saved mesh for one reason:
SavedMeshRefusalpartial: unsupported surface HermiteSurf. That covers the office'sRailing:KAI-6(3076853, also #1191's row 3d railing) and17_Rooms_Stairs_Spiral's 13680 and 13684, read from the IFCs kept by Measure 43663939560. So what is left here waits on reading HermiteSurf faces, which draft #1941 does. Once it lands, these three either come from their meshes, each scored against Revit's body, or stay with the reason that then applies.