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
Snowdon Towers Architectural: 6 roofs stay level blocks, 33% to 133% above Revit's volume, each with one decoder diagnostic (4 ruled-surface, 1 shared curved edge, 1 multi-loop cylinder) #1683
Six of Autodesk's Snowdon Towers Architectural's 20 roofs (Revit 2024) stay the level block of their sketch outline, 33% to 133% above Revit's volume, because each has one decoder diagnostic and its saved mesh holds no primitive (measured on #1630: Measure 42941250988 and 42943220826, SavedMeshRefusal on each roof of the export):
roofs
diagnostic
over Revit's volume
1926040, 1975810, 1985275, 2112673
malformed ruled-surface edge is connected to face #
33%, 40%, 42%, 133%
1916596
shared curved edge changes its fixed parameter
74%
964559
multiple cylinder trim loops unsupported
42%
The ruled-surface kind is on these four elements of the model and on no other class: ruled_surface_component in src/research/native_parametric_mesh.rs refuses a whole component of faces when one edge of it does not resolve to two Face objects through m_pFace (an edge of the roof's boundary, a token-only reference, or a pointer into another symbol), and the roofs' faces are lost with it. The other two kinds are shared with other classes: the shared curved edge on 25 elements of this model (the railings' KAI-5 and KAI-6 show it too) and the multi-loop cylinder faces of RE-407's negative.
Done when: each of the six roofs is drawn from its saved mesh and within 1% of Revit's volume (the local Snowdon IFC4 scores it; counts and percentages only here), by a rule that moves no other element's export (ifc.sha256 byte-identical elsewhere in an unfiltered Measure), or the report names, per roof, why the mesh is not Revit's body. Start with the four ruled-surface roofs: print the Edge objects of one component whose m_pFace pair fails and what they point at.
Related: #1630 (closed by its report), #1191, RE-389, RE-407.
First step of the six decoders: the refusal names the fault. Rows registered before the run.
fix/1683-ruled-surface-edge-detail (c0e1256) changes only the text of ruled_surface_component's refusal, from malformed ruled-surface edge is connected to face # to malformed ruled-surface edge (m_pFace is <class> + <class>) is connected to face #, each entry the class its pointer resolves to or none. Nothing is drawn differently. The run: probe_re389_roof_blocks on Autodesk's Snowdon Towers Architectural (Revit 2024) at that head, scorers=none, base=none, which prints each roof's diagnostic kinds.
Roofs 1926040, 1975810, 1985275 and 2112673 each read the new text, with the classes of the failing edge's m_pFace entries.
The four share one shape (the same <class> + <class>). If they show two or more, the guard conflates faults and the decoder fix is one per shape.
The shape holds a none: an edge on the boundary of the face set, with nothing on its other side. If it reads Face + <another class> or one entry only, that model of the fault is wrong and the next step is named after what the probe shows.
Roofs 964559 and 1916596 and the fourteen meshes read as in RE-420: their diagnostics are unchanged.
If 2 or 3 misses, I report it as registered and the next row names what the miss shows.
Result of Measure 42950491724 against the rows above: all four held.
probe_re389_roof_blocks on Snowdon Towers Architectural (Revit 2024) at fix/1683-ruled-surface-edge-detail (c0e1256), 20 roofs:
Held. Roofs 1926040, 1975810, 1985275 and 2112673 each read malformed ruled-surface edge (m_pFace is Face + none) is connected to face #.
Held. All four have the same shape, Face + none.
Held. The shape holds a none: the failing edge has one Face and nothing on its other side, an edge on the boundary of the faces the saved graph holds. The guard refuses a component that is not closed (every edge two faces), and these four roofs' saved graphs are not.
Held. 964559 still reads multiple cylinder trim loops unsupported, 1916596 shared curved edge changes its fixed parameter, and the 14 meshes have no diagnostic.
So the four are one fault, not four. What the run does not show is which faces of those roofs are absent from the saved graph (the sides, or a hidden face) and whether the ruled faces that are present decode right as an open set; that is the next probe (a dump of the failing component's faces and its boundary edges, RE-422), and the fix is to accept an open component only where its ruled faces' own boundaries are complete, which RE-422 will have to measure against Revit's export of those roofs. Not armed until the 0.18.0 tag is pushed.
Next step: what the saved graph of the four roofs holds at the open edge. Rows registered before the run (RE-422).
probes/examples/probe_re422_ruled_boundary.rs (on fix/1683-ruled-surface-edge-detail) prints, for roofs 1926040, 1975810, 1985275 and 2112673, the classes of the saved graph's objects, each Face's surface class, the shapes of every Edge's m_pFace, the components the guard builds through edges that hold two faces, and the first open edges with the face they border. Run: Measure on Autodesk's Snowdon Towers Architectural (Revit 2024), scorers=none, base=none.
Each roof's graph holds at least one RuledSurf face, and the guard's failing component is made of ruled and plane faces.
The open edges (Face + none) are few, 8 or fewer on each roof: the faces are closed but for a handful of edges whose other face is not in the graph, not an open sheet.
Every face that touches an open edge has all its other edges closed (two faces each).
The same four roofs and no others show a Face + none edge in a face of a ruled surface (the other 16 roofs' ruled faces, where they have any, are closed).
A miss on 2 or 3 changes the next step from "accept an open component where the ruled faces' boundaries are complete" to what the probe shows.
RE-422's probe, and the guard narrowed. Rows registered before the run.
What the probe found (Measure 42954101363, probe_re422_ruled_boundary on Snowdon Towers Architectural 2024): each of the four roofs holds ruled faces (23, 3, 7 and 2) in a component with plane faces (and one cylinder on two of them); the Face + none edges number 59, 9, 19 and 8 and, in the 12, 9, 12 and 8 each list prints, every one borders a plane or a cylinder, none a ruled face; the open edges have no loop pointers (m_next null). Against the rows registered above: 1 held; 2 missed (59, 9 and 19 open edges, not 8 or fewer); 3 was empty as written (every edge is open or closed); 4 was not measured (the probe read the four roofs only). The finding that counts is the one the rows did not name: the ruled faces themselves are closed.
The change (fix/1683-ruled-surface-edge-detail at a97c4ae, ruled_surface_component): the component is refused for a malformed edge only where the edge borders a RULED face. The component is only used to size one grid for its ruled faces (the straight generator edges they share must meet), a ruled face's neighbours are the faces its own edges name, and an open edge of a plane or a cylinder cannot join two ruled faces.
The run: Measure on Autodesk's samples of Revit 2024 with keep_ifc, scorers=none, then tools/re/roof_bodies_vs_ifc.py on the kept Snowdon export against the local Revit IFC4 (percentages only here).
Roofs 1926040, 1975810, 1985275 and 2112673 are drawn from their saved meshes (BodySourcesaved_graphics_mesh, no refusal) where no ruled face of theirs touches an open edge; a roof that stays a block reads the refusal text with its shape.
Each roof that moves is within 1% of Revit's volume and has every vertex of Revit's body within 0.05 ft of its surface (the blocks were 33% to 133% over).
Roofs 964559 and 1916596 are unchanged, and so are the other fourteen.
In the other nine 2024 samples only an element with a ruled face component and an open edge on a non-ruled face moves (counted from the exports' hashes and saved_mesh_refusals); the unfiltered run before merging says the same for the other 117 models.
If 2 misses on a roof the narrowing is not enough for it and I report that roof's volume and what differs.
Results of the registered rows for the narrowing (fix/1683-ruled-surface-edge-detail at a97c4ae), and what they did not name: the four roofs are right and enormous, and Snowdon Structural moves. Rows for the next step registered at the end, before it.
The run: Measure 42955514580 (Autodesk's samples of Revit 2024 and the reference models, keep_ifc, scorers=none), compared with the baseline run 42949360321 (main at 8334726, the branch's parent), both exports of Snowdon Architectural read from the kept IFC with a text-only script (a cut of the six roofs and their closure, no geometry kernel) against the local Revit IFC4 export.
Held. Roofs 1926040, 1975810, 1985275 and 2112673 each read BodySourcesaved_graphics_mesh and carry no SavedMeshRefusal. Roofs 964559 and 1916596 are still their level blocks with the same two refusals as before.
Volume held; the vertex part was not measured. Meshed volumes against Revit's body, over it: 1926040 −0.0015%, 1975810 +0.0032%, 1985275 −0.0004% and 2112673 −0.098%; the blocks were 33% to 133% over. The roof_bodies_vs_ifc.py vertex test did not run: IfcOpenShell needed more than 11.7 GB to mesh these roofs from a cut of 6 (a watchdog killed it at 10 GB; the cut opens in 0.3 GB), because of the next paragraph. NOT MEASURED, as registered.
Held by counts, not yet by bytes. Of Architectural's saved-mesh refusals exactly four go (the four roofs' malformed ruled-surface edge ...), every other reason and count is identical, and the bodies drawn from the saved graphics go from 3,014 to 3,018. The 14 meshes carry no refusal either side. A byte comparison of those 14 against main's export waits for the kept IFC of main (Measure 42961835081).
Held for the kind, missed for the count I did not bound: Snowdon Structural moves. Of the other 15 files of that run 14 are byte-identical to main's (the other eight 2024 samples, Core Interior, Einhoven and RE1's four). Snowdon Towers Structural is not: its malformed ruled-surface edge refusal goes from 43 elements to 0, the bodies drawn from their saved graphics from 83 to 126, the boxes from 156 to 113. No Revit export of Structural exists, so the 43 new meshes are scored against nothing, and the issue's done-when ("a rule that moves no other element's export") does not hold for this rule as it stands.
What no row named: the size. The four roofs have 1,510,643 triangles (1926040: 1,139,441, Revit's own 1,259; 1975810: 91,566 against 138; 1985275: 271,678 against 240; 2112673: 8,958 against 192). Architectural's IFC goes from 189,094,737 to 245,723,095 bytes (+30%), Structural's from 13,469,005 to 23,579,392 (+75%), and a consumer that builds solids from the face sets (IfcOpenShell, as the scorer does) needed more than 11 GB for the six roofs. What I read in face_grid explains it (no probe prints the grid sizes yet, so the sizes below are read from the code, not measured): a ruled face's grid is one normalized n by n grid shared by every ruled face of the component, with n the largest over them of the twist's count (sqrt(mixed / 0.001 ft)) and one step per foot along a straight profile (90 for a 90 ft line), so a skinny 3 ft by 90 ft face would be 90 by 90 cells. The chord bound 0.001 ft is the fine bar the "ref on ours" scorers hold meshes to, so the answer is a grid that is as fine only where the surface needs it, not a coarser bound.
Next step: per-face counts. Rows registered before the run. Each ruled face gets its own u and v counts from its own twist and its curved profiles (no per-foot rule for a straight profile), and a generator edge that two ruled faces of the component share takes the larger of their two counts along it, so that its vertices still coincide; planes and cylinders are untouched. Measure on Autodesk's samples of Revit 2024 with keep_ifc, then an unfiltered one before merging.
The four roofs have 100,000 triangles or fewer in all (1,510,643 now), and Architectural's IFC returns to under 200 MB.
Each of the four stays within 1% of Revit's volume (0.1% now) and, with the scorer able to run on the cut, every vertex of Revit's body lies within 0.001 ft of its surface.
The 43 elements of Structural lose at least half of the 312,788 triangles they gained.
In the unfiltered run, every model with a Revit export keeps every census line (no different appears) and every class of mesh_bodies_vs_ifc keeps the exact count it has; the exports that move are the ones with a ruled face, listed.
If 2 misses on a roof, the coarser grid is not enough for it and I report which roof and by how much; if 4 misses on a class, the per-face rule is narrowed to what holds.
Row 3 and row 4 read element by element, against main's kept exports (Measure 42961835081, main's parent of the branch). A text-only script reads both IFCs product by product (Tag, class, BodySource, SavedMeshRefusal, a hash of each triangulated face set's points and indices).
Architectural: 6,049 products with a Tag on both sides. Exactly 4 change their BodySource, the four roofs, record box to saved_graphics_mesh, from malformed ruled-surface edge is connected to face # (3) and ... ### (1). The 2,818 elements drawn from a saved mesh on both sides have identical face sets (0 differ, the 14 roofs among them). No other element's geometry or refusal differs. Row 3 holds byte for byte.
Snowdon Structural: 1,289 products. Exactly 43 change, all of them IfcFooting, record box to saved_graphics_mesh, each from partial: malformed ruled-surface edge is connected to face ##. The 83 elements already drawn from a mesh are identical, nothing else differs. So the 43 are footings, which no Revit export of this sample scores; row 4's "only an element with a ruled face component and an open edge on a non-ruled face moves" holds, and what moves is a class that nothing here can check.
Next step stays as registered (per-face counts). The footings are the reason its row 4 asks that no scored class loses an exact count, and the reason the issue's done-when ("a rule that moves no other element's export") needs the owner's word before the narrowing lands: it moves 43 footings.
What runs for the per-face next step, and how it differs from the design registered above (rows 1 to 4 stand as written, one added).face_grid for a ruled face (branch fix/1683-ruled-surface-edge-detail, one commit on a97c4ae):
each face takes its own grid (n from its own surface), not the largest n of its component;
a straight profile contributes no step (the per-foot rule goes), an arc or an ellipse keeps its angular step;
the twist counts only where the face is not flat: the four corners of its parameter rectangle in one plane (the second difference of the corners has no component along their plane's normal, 1e-8 ft) make it flat whatever its profiles' lengths, and any other face keeps the whole difference as before;
the guard stays (ruled_surface_component refuses a ruled face that borders an edge naming fewer than two faces), so nothing is drawn from a face whose neighbour the graph does not resolve.
I dropped the registered rule that a generator two faces share takes the larger of their two counts: a generator is a straight line, so the finer side only puts more vertices on the same line and no gap opens; where the shared edge is an arc, the two sides' chords differ by at most 0.001 ft, the bar the grid is sized to. If row 4 shows a scored class losing an exact count, that is the first place to look.
Added row 5. Among the exports of the 2024 samples and the six reference models of that run, those that move are only the ones that hold a ruled face, and the elements that change are listed by Tag (the four roofs and the 43 footings, plus any other element with a ruled face).
The run: Measure on Autodesk's samples of Revit 2024 with keep_ifc, scorers=none, base=none, then the same text-only element read as above against main's kept exports (Measure 42961835081).
Result of the quarter bound (V3, ecd6d32, Measure 42977161897: Autodesk's samples of Revit 2024 to 2027 and the reference models, keep_ifc, scorers=none) against the rows registered above: rows 1 to 4 held, row 5 held in its set and missed in its wording, row 6 not yet run. The four roofs are 198,762 triangles, from 761,635, and every vertex of Revit's body lies within 0.000358 ft of their surface.
The four roofs, from the kept export (text-only read of the cut) and from the roof scorer (roof_bodies_vs_ifc.py of main1641128 on a cut of the four from rvt-rs's export and from Revit's local IFC4, the IfcSite placement undone, run on this Mac under a 10 GB limit: it peaked at 9.1 GB):
roof
triangles V2 to V3
volume over Revit's
farthest vertex of Revit's body from rvt-rs's surface
1926040
584,311 to 152,060
-0.0019%
0.000222 ft
1975810
50,286 to 13,238
+0.0029%
0.0000267 ft
1985275
126,368 to 32,794
-0.0007%
0.00000843 ft
2112673
670 to 670
-0.103%
0.000358 ft
all four
761,635 to 198,762
4 of 4 within 0.001 ft
Revit's own bodies of the four are 1,259, 138, 240 and 192 triangles.
Row by row, as registered:
Held. The four roofs have 198,762 triangles (200,000 or fewer asked), 74% fewer than V2's, and Architectural's IFC is 193.5 MB (under 200 asked; V2's 214.7, main's 189.1).
Held. Each roof is within 1% of Revit's volume: 0.0019%, 0.0029%, 0.0007% and 0.103%.
Held. The vertex test runs on all four (it was killed for memory at 584,000 triangles, and its first attempt on this export read 1.39e6 ft because the scorer on the old checkout I used did not undo the site placement; the one above is main's) and finds every vertex of Revit's body within 0.001 ft of rvt-rs's surface: the farthest is 0.000358 ft, so the quarter bound holds the 0.001 ft bar with a margin.
Held. Snowdon Structural is 58,286 triangles and 8.2 MB, as under V2: the 43 footings gain none of their 312,788 triangles.
Held in its set, missed in its wording. The exports that move against main are the ten V2 moved and no other: RE1 Architecture, Snowdon Architectural, Structural, Electrical, HVAC and Plumbing, and rac_basic of 2024 to 2027. "Each with fewer triangles than under V2" is true of two (RE1 Architecture 18,126 to 18,046, Architectural 4,888,932 to 4,326,059); the other eight are byte-identical to V2's, because none holds a twisted face between two straight profiles.
The element read of Snowdon Architectural (a text-only read of both exports, product by product, against main's kept export of Measure 42961835081): 6,049 products with a Tag on both sides. Exactly the four roofs change body (record box to saved_graphics_mesh). Of the 2,818 elements drawn from a saved mesh on both sides, 11 have a different mesh (the first ten are three IfcColumn and seven IfcRailing); V2's export already differs from main's in the same 11, and V3 differs from V2's in three roofs only (1926040, 1975810, 1985275). So V3 moves nothing that V2 did not: the 11 existing meshes are V2's per-face grid, the quarter bound touches only the roofs here. No other element's geometry or refusal differs.
Not yet run (row 6): the unfiltered Measure, Measure 42980660819 (the branch merged with main1641128, every flag, every scorer). The owner's call on the done-when ("a rule that moves no other element's export") is asked once it is read: what moves is the 43 Structural footings (record box to mesh, unscored), 11 existing meshes in Architectural, and the ruled-face meshes of the models above.
The unfiltered Measure of V3 (42980660819: the branch merged with main1641128 at 7e80532, every flag, every scorer, 126 models each side) found a scored class that loses a count: row 6 missed. Rows for finding which step does it registered at the end, before the runs.
Exports: 114 of 126 byte-identical, 12 move: the held-out house AA-SingleDwellingHouse-RVT-CIADD, RE1 Architecture, rac_basic 2023 to 2027 (4 files incl. 2023), and Snowdon Architectural, Structural, Electrical, HVAC and Plumbing. (The first nine of those I had listed; the held-out house and rac_basic 2023 are new to the list.) same-project gates pass on 7e80532.
Scorers: everything else in the scorer diff is two schema lines on Snowdon (placement composition: 2,409 to 2,405 swept solids on Architectural and 1,214 to 1,171 on Structural, which have no Revit export), and one line of the held-out house's counts: mesh bodies: IfcWindow, columns n 15, vol 1% 15, vol .01% 15, 0.01 ft 15, 0.001 ft 9 to 2, ref on ours 15, median 1.0000. The 15 windows are drawn from their saved meshes on both sides and every one still holds the volume and the 0.01 ft bar, and every vertex of Revit's body is still within 0.001 ft of rvt-rs's surface (ref on ours 15 of 15); what falls is the count of windows whose two bodies lie within 0.001 ft of each other in both directions, from 9 to 2. That count is a tessellation-sensitive one (the fine bar decides only where both files write true curves, Body scorers: measure shapes, not IfcOpenShell's default tessellation (circle forms differ by one chord) #1355, and these are saved meshes), but it is a scored class and the done-when asked that none lose an exact count.
So V3 does not land as it stands. The held-out results are counts only, so the windows cannot be read one by one here. Rows for the diagnosis, registered before the runs. The held-out house alone (models=holdout-AA-SingleDwellingHouse-RVT-CIADD, holdout=true, base=none, scorers=mesh_bodies_vs_ifc) at each step of the branch, which are on the same ancestry:
The guard narrowed alone (a97c4ae) leaves IfcWindow's 0.001 ft column at 9 of 15, as main's.
The per-face grid (b4e2df5, V1) or the u and v split (bb4e21d, V2) takes it to 2 or fewer; V3's quarter bound is not what moves it (V2 reads the same as V3).
ref on ours stays 15 of 15 at every step.
If 2 holds, the cause is the grid of ruled faces that main already draws, not the roofs' bound, and the rule is narrowed to the components only the narrowed guard admits (the four roofs and the 43 footings): a component main's guard accepts keeps main's shared grid, so every export main draws stays byte-identical. The done-when then holds (it moves only the 43 footings, unscored), and the owner's question shrinks to those 43.
V4 rows, registered before its unfiltered run (it runs beside the three diagnosis runs, because it is the same change whichever step they name).1cd344d5 on the branch: the per-face grid and the quarter bound apply to a ruled component only where main's guard would have refused it (an edge naming fewer than two faces anywhere in it), which are the four roofs and the 43 footings; a component main drew keeps main's shared grid, and the refusal text is main's again. Unfiltered Measure, every flag and scorer, against main1641128 (the branch's base):
Exactly two exports move: Snowdon Architectural (the four roofs) and Snowdon Structural (the 43 footings); the other 124 are byte-identical, the held-out house, RE1 Architecture, rac_basic 2023 to 2027, Snowdon Electrical, HVAC and Plumbing among them.
No scorer line moves on any model; in particular the held-out house's IfcWindow0.001 ft count reads 9 of 15 again.
The four roofs read 198,762 triangles and the footings 58,286 for Structural's file, as in V3 (the newly admitted components take the V3 grid unchanged).
same-project gates pass.
If 1 holds the done-when is met as written for every element except the 43 footings (record box to saved mesh, unscored: no Revit export of Structural exists), and that is the one thing the owner is asked.
Result of the held-out diagnosis (Measure 42984591545, 42984594727, 42984598295: the house AA-SingleDwellingHouse-RVT-CIADD alone, mesh_bodies_vs_ifc, base=none) against the rows registered above: all three held. The u and v split (V2) is what moves the windows; the guard and the per-face grid do not.
IfcWindow, the 0.001 ft column (both bodies within 0.001 ft of each other in both directions), 15 windows:
Held. The count falls at V2 (2 of 15), not at V1, and V3 reads what V2 does.
Held.ref on ours is 15 of 15 and the volume and 0.01 ft columns are full at every step: no vertex of Revit's body leaves the 0.001 ft bar, and what changes is the other direction (rvt-rs's vertices from Revit's surface).
So the u/v split, which gives a face with arcs between straight generators its arcs' steps along and one cell across (where main's shared grid gave it as many across as along), changes the meshes of the windows main already draws, and the metric reads it as a loss. The per-body detail is not visible (held-out results are counts only), so whether the 9 were windows whose tested vertices all lay on Revit's facets, or a scorer that tests at most 400 vertices of a body (an even stride) and now tests different ones, is not established. Either way V4 (1cd344d5, rows above, unfiltered run 42984875710) leaves the windows on main's grid, byte for byte, and the new grids apply only to the four roofs and the 43 footings.
Result of the unfiltered Measure of V4 (42984875710: 1cd344d5 merged with main1641128, every flag and scorer, 126 models each side) against the rows registered above: rows 1, 2 and 4 held, row 3 is being read from a kept export.
Held. Exactly two exports move: Snowdon Towers Architectural and Snowdon Towers Structural. The other 124 are byte-identical to main's, among them the held-out house, RE1 Architecture, rac_basic 2023 to 2027 and Snowdon Electrical, HVAC and Plumbing, which V3 moved.
Held. The scorer diff holds nothing but the two files only the head side writes and one line on each of the two Snowdon models, placement composition (2,409 to 2,405 swept solids on Architectural, 1,214 to 1,171 on Structural: the four roofs and 43 footings now have a mesh instead of a box), models with no Revit export. The held-out house's IfcWindow0.001 ft count does not appear: it reads 9 of 15 again.
Not readable from hashes. V4's two exports are not V3's, as they should not be: the 83 meshes of Structural and the 11 of Architectural that V2 and V3 re-meshed keep main's grid again, so Structural's file is no longer V3's 58,286 triangles (that figure was V3 re-meshing the 83 bodies main already drew). The kept export of the 2024 samples is Measure 42988906515; the text-only element read against main's kept exports (42961835081) says which products change and how many triangles the roofs and the footings have.
The done-when's "a rule that moves no other element's export" therefore holds as written for 124 of 126 exports, and for the two models that move it holds for every element except the 4 roofs (the issue's subject) and the 43 footings of Structural, which take a mesh in place of their record box and which no Revit export scores. That is the one thing left for the owner.
Activity
docs(re): RE-420 finds why 6 of Snowdon Towers Architectural's roofs …
DrunkOnJava commentedon Nov 11, 2026
First step of the six decoders: the refusal names the fault. Rows registered before the run.
fix/1683-ruled-surface-edge-detail(c0e1256) changes only the text ofruled_surface_component's refusal, frommalformed ruled-surface edge is connected to face #tomalformed ruled-surface edge (m_pFace is <class> + <class>) is connected to face #, each entry the class its pointer resolves to ornone. Nothing is drawn differently. The run:probe_re389_roof_blockson Autodesk's Snowdon Towers Architectural (Revit 2024) at that head,scorers=none,base=none, which prints each roof's diagnostic kinds.m_pFaceentries.<class> + <class>). If they show two or more, the guard conflates faults and the decoder fix is one per shape.none: an edge on the boundary of the face set, with nothing on its other side. If it readsFace + <another class>or one entry only, that model of the fault is wrong and the next step is named after what the probe shows.If 2 or 3 misses, I report it as registered and the next row names what the miss shows.
DrunkOnJava commentedon Nov 11, 2026
Result of Measure 42950491724 against the rows above: all four held.
probe_re389_roof_blockson Snowdon Towers Architectural (Revit 2024) atfix/1683-ruled-surface-edge-detail(c0e1256), 20 roofs:malformed ruled-surface edge (m_pFace is Face + none) is connected to face #.Face + none.none: the failing edge has oneFaceand nothing on its other side, an edge on the boundary of the faces the saved graph holds. The guard refuses a component that is not closed (every edge two faces), and these four roofs' saved graphs are not.multiple cylinder trim loops unsupported, 1916596shared curved edge changes its fixed parameter, and the 14 meshes have no diagnostic.So the four are one fault, not four. What the run does not show is which faces of those roofs are absent from the saved graph (the sides, or a hidden face) and whether the ruled faces that are present decode right as an open set; that is the next probe (a dump of the failing component's faces and its boundary edges, RE-422), and the fix is to accept an open component only where its ruled faces' own boundaries are complete, which RE-422 will have to measure against Revit's export of those roofs. Not armed until the 0.18.0 tag is pushed.
research(probes): RE-422 lists what the saved graph of a roof that ke…
DrunkOnJava commentedon Nov 11, 2026
Next step: what the saved graph of the four roofs holds at the open edge. Rows registered before the run (RE-422).
probes/examples/probe_re422_ruled_boundary.rs(onfix/1683-ruled-surface-edge-detail) prints, for roofs 1926040, 1975810, 1985275 and 2112673, the classes of the saved graph's objects, eachFace's surface class, the shapes of everyEdge'sm_pFace, the components the guard builds through edges that hold two faces, and the first open edges with the face they border. Run: Measure on Autodesk's Snowdon Towers Architectural (Revit 2024),scorers=none,base=none.RuledSurfface, and the guard's failing component is made of ruled and plane faces.Face + none) are few, 8 or fewer on each roof: the faces are closed but for a handful of edges whose other face is not in the graph, not an open sheet.Face + noneedge in a face of a ruled surface (the other 16 roofs' ruled faces, where they have any, are closed).A miss on 2 or 3 changes the next step from "accept an open component where the ruled faces' boundaries are complete" to what the probe shows.
feat(research): a ruled-surface component is refused only where a rul…
DrunkOnJava commentedon Nov 11, 2026
RE-422's probe, and the guard narrowed. Rows registered before the run.
What the probe found (Measure 42954101363,
probe_re422_ruled_boundaryon Snowdon Towers Architectural 2024): each of the four roofs holds ruled faces (23, 3, 7 and 2) in a component with plane faces (and one cylinder on two of them); theFace + noneedges number 59, 9, 19 and 8 and, in the 12, 9, 12 and 8 each list prints, every one borders a plane or a cylinder, none a ruled face; the open edges have no loop pointers (m_nextnull). Against the rows registered above: 1 held; 2 missed (59, 9 and 19 open edges, not 8 or fewer); 3 was empty as written (every edge is open or closed); 4 was not measured (the probe read the four roofs only). The finding that counts is the one the rows did not name: the ruled faces themselves are closed.The change (
fix/1683-ruled-surface-edge-detailat a97c4ae,ruled_surface_component): the component is refused for a malformed edge only where the edge borders a RULED face. The component is only used to size one grid for its ruled faces (the straight generator edges they share must meet), a ruled face's neighbours are the faces its own edges name, and an open edge of a plane or a cylinder cannot join two ruled faces.The run: Measure on Autodesk's samples of Revit 2024 with
keep_ifc,scorers=none, thentools/re/roof_bodies_vs_ifc.pyon the kept Snowdon export against the local Revit IFC4 (percentages only here).BodySourcesaved_graphics_mesh, no refusal) where no ruled face of theirs touches an open edge; a roof that stays a block reads the refusal text with its shape.saved_mesh_refusals); the unfiltered run before merging says the same for the other 117 models.If 2 misses on a roof the narrowing is not enough for it and I report that roof's volume and what differs.
DrunkOnJava commentedon Nov 11, 2026
Results of the registered rows for the narrowing (
fix/1683-ruled-surface-edge-detailat a97c4ae), and what they did not name: the four roofs are right and enormous, and Snowdon Structural moves. Rows for the next step registered at the end, before it.The run: Measure 42955514580 (Autodesk's samples of Revit 2024 and the reference models,
keep_ifc,scorers=none), compared with the baseline run 42949360321 (mainat 8334726, the branch's parent), both exports of Snowdon Architectural read from the kept IFC with a text-only script (a cut of the six roofs and their closure, no geometry kernel) against the local Revit IFC4 export.BodySourcesaved_graphics_meshand carry noSavedMeshRefusal. Roofs 964559 and 1916596 are still their level blocks with the same two refusals as before.roof_bodies_vs_ifc.pyvertex test did not run: IfcOpenShell needed more than 11.7 GB to mesh these roofs from a cut of 6 (a watchdog killed it at 10 GB; the cut opens in 0.3 GB), because of the next paragraph. NOT MEASURED, as registered.malformed ruled-surface edge ...), every other reason and count is identical, and the bodies drawn from the saved graphics go from 3,014 to 3,018. The 14 meshes carry no refusal either side. A byte comparison of those 14 againstmain's export waits for the kept IFC ofmain(Measure 42961835081).main's (the other eight 2024 samples, Core Interior, Einhoven and RE1's four). Snowdon Towers Structural is not: itsmalformed ruled-surface edgerefusal goes from 43 elements to 0, the bodies drawn from their saved graphics from 83 to 126, the boxes from 156 to 113. No Revit export of Structural exists, so the 43 new meshes are scored against nothing, and the issue's done-when ("a rule that moves no other element's export") does not hold for this rule as it stands.What no row named: the size. The four roofs have 1,510,643 triangles (1926040: 1,139,441, Revit's own 1,259; 1975810: 91,566 against 138; 1985275: 271,678 against 240; 2112673: 8,958 against 192). Architectural's IFC goes from 189,094,737 to 245,723,095 bytes (+30%), Structural's from 13,469,005 to 23,579,392 (+75%), and a consumer that builds solids from the face sets (IfcOpenShell, as the scorer does) needed more than 11 GB for the six roofs. What I read in
face_gridexplains it (no probe prints the grid sizes yet, so the sizes below are read from the code, not measured): a ruled face's grid is one normalized n by n grid shared by every ruled face of the component, with n the largest over them of the twist's count (sqrt(mixed / 0.001 ft)) and one step per foot along a straight profile (90 for a 90 ft line), so a skinny 3 ft by 90 ft face would be 90 by 90 cells. The chord bound 0.001 ft is the fine bar the "ref on ours" scorers hold meshes to, so the answer is a grid that is as fine only where the surface needs it, not a coarser bound.Next step: per-face counts. Rows registered before the run. Each ruled face gets its own u and v counts from its own twist and its curved profiles (no per-foot rule for a straight profile), and a generator edge that two ruled faces of the component share takes the larger of their two counts along it, so that its vertices still coincide; planes and cylinders are untouched. Measure on Autodesk's samples of Revit 2024 with
keep_ifc, then an unfiltered one before merging.differentappears) and every class ofmesh_bodies_vs_ifckeeps the exact count it has; the exports that move are the ones with a ruled face, listed.If 2 misses on a roof, the coarser grid is not enough for it and I report which roof and by how much; if 4 misses on a class, the per-face rule is narrowed to what holds.
DrunkOnJava commentedon Nov 11, 2026
Row 3 and row 4 read element by element, against
main's kept exports (Measure 42961835081,main's parent of the branch). A text-only script reads both IFCs product by product (Tag, class,BodySource,SavedMeshRefusal, a hash of each triangulated face set's points and indices).BodySource, the four roofs, record box tosaved_graphics_mesh, frommalformed ruled-surface edge is connected to face #(3) and... ###(1). The 2,818 elements drawn from a saved mesh on both sides have identical face sets (0 differ, the 14 roofs among them). No other element's geometry or refusal differs. Row 3 holds byte for byte.IfcFooting, record box tosaved_graphics_mesh, each frompartial: malformed ruled-surface edge is connected to face ##. The 83 elements already drawn from a mesh are identical, nothing else differs. So the 43 are footings, which no Revit export of this sample scores; row 4's "only an element with a ruled face component and an open edge on a non-ruled face moves" holds, and what moves is a class that nothing here can check.Next step stays as registered (per-face counts). The footings are the reason its row 4 asks that no scored class loses an exact count, and the reason the issue's done-when ("a rule that moves no other element's export") needs the owner's word before the narrowing lands: it moves 43 footings.
DrunkOnJava commentedon Nov 11, 2026
What runs for the per-face next step, and how it differs from the design registered above (rows 1 to 4 stand as written, one added).
face_gridfor a ruled face (branchfix/1683-ruled-surface-edge-detail, one commit on a97c4ae):nfrom its own surface), not the largestnof its component;ruled_surface_componentrefuses a ruled face that borders an edge naming fewer than two faces), so nothing is drawn from a face whose neighbour the graph does not resolve.I dropped the registered rule that a generator two faces share takes the larger of their two counts: a generator is a straight line, so the finer side only puts more vertices on the same line and no gap opens; where the shared edge is an arc, the two sides' chords differ by at most 0.001 ft, the bar the grid is sized to. If row 4 shows a scored class losing an exact count, that is the first place to look.
Added row 5. Among the exports of the 2024 samples and the six reference models of that run, those that move are only the ones that hold a ruled face, and the elements that change are listed by Tag (the four roofs and the 43 footings, plus any other element with a ruled face).
The run: Measure on Autodesk's samples of Revit 2024 with
keep_ifc,scorers=none,base=none, then the same text-only element read as above againstmain's kept exports (Measure 42961835081).feat(research): a ruled face takes the grid its own surface needs, an…
4 remaining items
feat(research): a ruled face between two straight profiles asks a qua…
merge: main into fix/1683-ruled-surface-edge-detail (#1683)
DrunkOnJava commentedon Nov 11, 2026
Result of the quarter bound (V3, ecd6d32, Measure 42977161897: Autodesk's samples of Revit 2024 to 2027 and the reference models,
keep_ifc,scorers=none) against the rows registered above: rows 1 to 4 held, row 5 held in its set and missed in its wording, row 6 not yet run. The four roofs are 198,762 triangles, from 761,635, and every vertex of Revit's body lies within 0.000358 ft of their surface.The four roofs, from the kept export (text-only read of the cut) and from the roof scorer (
roof_bodies_vs_ifc.pyofmain1641128 on a cut of the four from rvt-rs's export and from Revit's local IFC4, the IfcSite placement undone, run on this Mac under a 10 GB limit: it peaked at 9.1 GB):Revit's own bodies of the four are 1,259, 138, 240 and 192 triangles.
Row by row, as registered:
main's 189.1).main's) and finds every vertex of Revit's body within 0.001 ft of rvt-rs's surface: the farthest is 0.000358 ft, so the quarter bound holds the 0.001 ft bar with a margin.mainare the ten V2 moved and no other: RE1 Architecture, Snowdon Architectural, Structural, Electrical, HVAC and Plumbing, andrac_basicof 2024 to 2027. "Each with fewer triangles than under V2" is true of two (RE1 Architecture 18,126 to 18,046, Architectural 4,888,932 to 4,326,059); the other eight are byte-identical to V2's, because none holds a twisted face between two straight profiles.The element read of Snowdon Architectural (a text-only read of both exports, product by product, against
main's kept export of Measure 42961835081): 6,049 products with a Tag on both sides. Exactly the four roofs change body (record box tosaved_graphics_mesh). Of the 2,818 elements drawn from a saved mesh on both sides, 11 have a different mesh (the first ten are threeIfcColumnand sevenIfcRailing); V2's export already differs frommain's in the same 11, and V3 differs from V2's in three roofs only (1926040, 1975810, 1985275). So V3 moves nothing that V2 did not: the 11 existing meshes are V2's per-face grid, the quarter bound touches only the roofs here. No other element's geometry or refusal differs.Not yet run (row 6): the unfiltered Measure, Measure 42980660819 (the branch merged with
main1641128, every flag, every scorer). The owner's call on the done-when ("a rule that moves no other element's export") is asked once it is read: what moves is the 43 Structural footings (record box to mesh, unscored), 11 existing meshes in Architectural, and the ruled-face meshes of the models above.DrunkOnJava commentedon Nov 11, 2026
The unfiltered Measure of V3 (42980660819: the branch merged with
main1641128 at 7e80532, every flag, every scorer, 126 models each side) found a scored class that loses a count: row 6 missed. Rows for finding which step does it registered at the end, before the runs.AA-SingleDwellingHouse-RVT-CIADD, RE1 Architecture,rac_basic2023 to 2027 (4 files incl. 2023), and Snowdon Architectural, Structural, Electrical, HVAC and Plumbing. (The first nine of those I had listed; the held-out house andrac_basic2023 are new to the list.)same-project gatespass on 7e80532.placement composition: 2,409 to 2,405 swept solids on Architectural and 1,214 to 1,171 on Structural, which have no Revit export), and one line of the held-out house's counts:mesh bodies: IfcWindow, columnsn 15, vol 1% 15, vol .01% 15, 0.01 ft 15, 0.001 ft 9 to 2, ref on ours 15, median 1.0000. The 15 windows are drawn from their saved meshes on both sides and every one still holds the volume and the 0.01 ft bar, and every vertex of Revit's body is still within 0.001 ft of rvt-rs's surface (ref on ours15 of 15); what falls is the count of windows whose two bodies lie within 0.001 ft of each other in both directions, from 9 to 2. That count is a tessellation-sensitive one (the fine bar decides only where both files write true curves, Body scorers: measure shapes, not IfcOpenShell's default tessellation (circle forms differ by one chord) #1355, and these are saved meshes), but it is a scored class and the done-when asked that none lose an exact count.So V3 does not land as it stands. The held-out results are counts only, so the windows cannot be read one by one here. Rows for the diagnosis, registered before the runs. The held-out house alone (
models=holdout-AA-SingleDwellingHouse-RVT-CIADD,holdout=true,base=none,scorers=mesh_bodies_vs_ifc) at each step of the branch, which are on the same ancestry:IfcWindow's0.001 ftcolumn at 9 of 15, asmain's.uandvsplit (bb4e21d, V2) takes it to 2 or fewer; V3's quarter bound is not what moves it (V2 reads the same as V3).ref on oursstays 15 of 15 at every step.If 2 holds, the cause is the grid of ruled faces that main already draws, not the roofs' bound, and the rule is narrowed to the components only the narrowed guard admits (the four roofs and the 43 footings): a component
main's guard accepts keepsmain's shared grid, so every exportmaindraws stays byte-identical. The done-when then holds (it moves only the 43 footings, unscored), and the owner's question shrinks to those 43.fix(research): the per-face ruled grid and the quarter bound apply on…
DrunkOnJava commentedon Nov 11, 2026
V4 rows, registered before its unfiltered run (it runs beside the three diagnosis runs, because it is the same change whichever step they name).
1cd344d5on the branch: the per-face grid and the quarter bound apply to a ruled component only wheremain's guard would have refused it (an edge naming fewer than two faces anywhere in it), which are the four roofs and the 43 footings; a componentmaindrew keepsmain's shared grid, and the refusal text ismain's again. Unfiltered Measure, every flag and scorer, againstmain1641128 (the branch's base):rac_basic2023 to 2027, Snowdon Electrical, HVAC and Plumbing among them.IfcWindow0.001 ftcount reads 9 of 15 again.same-project gatespass.If 1 holds the done-when is met as written for every element except the 43 footings (record box to saved mesh, unscored: no Revit export of Structural exists), and that is the one thing the owner is asked.
DrunkOnJava commentedon Nov 11, 2026
Result of the held-out diagnosis (Measure 42984591545, 42984594727, 42984598295: the house
AA-SingleDwellingHouse-RVT-CIADDalone,mesh_bodies_vs_ifc,base=none) against the rows registered above: all three held. Theuandvsplit (V2) is what moves the windows; the guard and the per-face grid do not.IfcWindow, the0.001 ftcolumn (both bodies within 0.001 ft of each other in both directions), 15 windows:0.001 ftref on ours0.01 ft,vol 1%main(the base of the unfiltered run)uandvcounted apart (V2, bb4e21d)ref on oursis 15 of 15 and the volume and 0.01 ft columns are full at every step: no vertex of Revit's body leaves the 0.001 ft bar, and what changes is the other direction (rvt-rs's vertices from Revit's surface).So the
u/vsplit, which gives a face with arcs between straight generators its arcs' steps along and one cell across (wheremain's shared grid gave it as many across as along), changes the meshes of the windowsmainalready draws, and the metric reads it as a loss. The per-body detail is not visible (held-out results are counts only), so whether the 9 were windows whose tested vertices all lay on Revit's facets, or a scorer that tests at most 400 vertices of a body (an even stride) and now tests different ones, is not established. Either way V4 (1cd344d5, rows above, unfiltered run 42984875710) leaves the windows onmain's grid, byte for byte, and the new grids apply only to the four roofs and the 43 footings.DrunkOnJava commentedon Nov 11, 2026
Result of the unfiltered Measure of V4 (42984875710:
1cd344d5merged withmain1641128, every flag and scorer, 126 models each side) against the rows registered above: rows 1, 2 and 4 held, row 3 is being read from a kept export.main's, among them the held-out house, RE1 Architecture,rac_basic2023 to 2027 and Snowdon Electrical, HVAC and Plumbing, which V3 moved.placement composition(2,409 to 2,405 swept solids on Architectural, 1,214 to 1,171 on Structural: the four roofs and 43 footings now have a mesh instead of a box), models with no Revit export. The held-out house'sIfcWindow0.001 ftcount does not appear: it reads 9 of 15 again.same-project gatespass on 1cd344d.main's grid again, so Structural's file is no longer V3's 58,286 triangles (that figure was V3 re-meshing the 83 bodiesmainalready drew). The kept export of the 2024 samples is Measure 42988906515; the text-only element read againstmain's kept exports (42961835081) says which products change and how many triangles the roofs and the footings have.The done-when's "a rule that moves no other element's export" therefore holds as written for 124 of 126 exports, and for the two models that move it holds for every element except the 4 roofs (the issue's subject) and the 43 footings of Structural, which take a mesh in place of their record box and which no Revit export scores. That is the one thing left for the owner.
research(probes): the grid of each ruled face a saved graph holds, an…
docs(re): RE-422 reports the four ruled-surface roofs and the rows re…
merge: main into fix/1683-ruled-surface-edge-detail (#1683)
fix(research): a plane that meets a cylinder along an edge across bot…
fix(research): four of Snowdon Towers Architectural's six block roofs…