Skip to content

ci(measure): Autodesk's samples are validated up to 120 MB, as the reference models are - #1532

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/validate-samples-to-120-mb
Nov 9, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/validate-samples-to-120-mb

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

Measure runs IfcOpenShell's full validation on a sample's export only up to 30 MB, while a reference model's goes to 120 MB. The office exports validate at 68 MB. Under the 30 MB limit rme_advanced, rme_basic and Snowdon Architectural of 2024 are skipped, and a change that adds to the MEP exports pushes the 2025 to 2027 saves over it too. Those are the saves a port or connection fault reaches, so they go unchecked exactly where it matters. The limit becomes 120 MB, bounded by the same 2 * STEP_TIMEOUT as before.

Testing

bash -n parses the script. Measure run 42525169013 on this head with samples=true, every year: all 58 samples are validated, none skipped, with 0 findings on every one, so main's own 2024 to 2027 exports are valid. No step times out: the longest validation is 115.8 s (Snowdon Architectural 2024) against a limit of 4,800 s. The three samples that were skipped (Snowdon Architectural, rme_basic and rme_advanced, all 2024) add 342 s, about 5.7 minutes; validation across all 58 takes 2,439 s. These are one side's per-step figures from timings.log, so runner speed isn't paired against main.

…ference models are, since the MEP saves that were skipped are the ones a port fault reaches
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 9, 2026 01:16
@DrunkOnJava
DrunkOnJava merged commit 12c92af into main Nov 9, 2026
83 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/validate-samples-to-120-mb branch November 9, 2026 02:05
DrunkOnJava added a commit that referenced this pull request Nov 20, 2026
…le, two regions or a seamless tube, is meshed (#1191) (#2102)

**On the full Measure, rows 1, 3, 4 and 5 hold. Row 2 fails only on the
BIM4LCA offices' 30 `Stay_Wall_Mounted_:VAR-1` grab bars a file, which
Revit's own export draws as a square along their legs
([read](#2102 (comment))).
They ship drawn round, as the file saves them, with that miss on record
(decided 2026-11-20). Report: RE-494.**

## Summary

A cylinder face bounded by two trim loops on part of a turn is now
meshed strip by strip (`band_mesh`). Before, the saved-graphics mesher
took one trim loop on a cylinder and refused any face with two as
`multiple cylinder trim loops unsupported`. Two loops making a full
turn, and three or more loops, are still refused. The code is as at
`d46bfeff`; the commits after it add the report, the changelog fragment
and the docs.

A full Measure of `1ab9c54e` against main `4e05cfb0`
([44649733126](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44649733126):
nordic, r2025, samples, holdout, every scorer, exports kept) moves 27 of
120 exports. On 22 of them, bodies that were record boxes are now drawn
from their saved meshes: 1,289 on the exports kept, and 10 on the
held-out house. On the other five, the rac basic samples, only refusal
texts move (row 4). The bodies newly drawn:
- `IfcFurniture`: 30 on each BIM4LCA office file, all
`Stay_Wall_Mounted_:VAR-1`. **Row 2 fails on all 30**: 1.11 of Revit's
volume, rvt-rs's points up to 0.0116 ft off Revit's surface.
- `IfcDoor`: 4 on each BIM4LCA housing file (`O-5:O-5.9x21sauna`) and 10
on the held-out house. **All pass row 2**: within 0.01 ft both ways and
within 1 per cent of Revit's volume.
- `IfcPipeFitting` (48 and 87) and one `IfcBuildingElementProxy` on
Autodesk's rme basic and advanced samples in every year they exist, 2023
to 2027.
- Snowdon Towers 2024: 404 `IfcAirTerminal` and 36 `IfcDuctFitting`
(HVAC), 108 `IfcSanitaryTerminal` (plumbing), 5
`IfcBuildingElementProxy` (`Trash Chute`), an `IfcColumn` and an
`IfcElectricAppliance` (architectural), and an `IfcLightFixture`
(electrical). Revit has no export of these in Measure; how they were
read is below.

The grab bars fail because Revit's export draws the round bar with a few
large flats. Along the legs it uses a square whose corners lie on
rvt-rs's round (radius 0.0110 m). On the U-bend it uses straight pieces
whose ends lie on that round. Both of Revit's shapes for them, 15 bodies
each, read the same. Revit writes those flats itself
(`IfcPolygonalFaceSet`), so they are not IfcOpenShell's tessellation.

`d46bfeff` removes the full-turn reader, `tube_trim`, which no face on
any file read took. A byte-identity Measure of it against `1ab9c54e`
([44660808578](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44660808578):
nordic, r2025, samples, holdout) leaves 120 of 120 exports and 102 of
102 `diagnostics.json` identical.

## Motivation

#1191 (W6). A census of `box_bodies_vs_ifc` over the models with Revit's
own export (Measure
[44589336915](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44589336915),
head side, `5e36af9f`, before #2099) counts, for each refusal reason,
the bodies whose refusal names it alone. That is a lower bound of what
each reason blocks: a face's first failing stage hides the ones behind
it. `multiple cylinder trim loops unsupported` is the largest such
reason Revit's exports can check: named alone by 136 bodies, 30 on each
BIM4LCA office file and 4 on each housing file.

Probe runs said which shape those faces are:
-
[44638585587](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44638585587):
none on the office or the housing is a tube. Every such face's envelope
covers part of a turn.
-
[44639888934](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44639888934):
on the housing's 4, each pair of loops is a hole inside the other loop;
on the office's 30, holes and two separate regions.
-
[44659164312](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44659164312)
(`probe_2102_cylinder_loops` at `6327fb09`, every 2024 to 2027 sample):
every two-loop cylinder face covers part of a turn (1 to 51 faces a
file), so none takes the full-turn path. 13 faces on each rme advanced
and basic file and 3 on Snowdon architectural have three loops, and 2 on
each rac advanced file have ten; all are still refused.

## Changes

- `src/research/native_saved_mesh.rs`: `cylinder_face` reads a second
trim loop. If the two make a full turn it refuses them as `two cylinder
trim loops on a full turn unsupported`; otherwise it reads both rings
closed and meshes them with `band_mesh`. `band_mesh` takes the strips
across U, whose edges fall on every ring point, so each ring edge
crosses a strip whole or not at all. It covers each strip between its
crossings taken in pairs by height, which is a hole and separate regions
alike. The face's points are both rings', so the plane beside it
rebuilds the same steps (`refined_plane_edge`). Three or more loops are
still refused.

## Testing

Unit tests are banned in this repository. **Rows registered before any
run is read.** The registration below is as written before the full
Measure ran; each row's result follows it. A third probe run on the same
two files
([44641101362](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44641101362),
`42a94918`) was read for one question: are the bodies that named the
reason alone drawn now? They are, and row 2 fails on the office
([read](#2102 (comment))),
so no full Measure is run until those bodies are read face by face. The
rows below are judged on a full Measure of the head that settles
(nordic, r2025, samples, holdout, every scorer, exports kept).

1. **Nothing scored moves away from Revit.** In `mesh_bodies_vs_ifc`,
`saved_meshes_vs_ifc`, `roof_bodies_vs_ifc` and `stair_bodies_vs_ifc`,
no class's "ref on ours", "0.001 ft" or "0.01 ft" count falls, and no
body leaves a volume bin it was in. No `psets_vs_ifc` or `qtos_vs_ifc`
line moves.
    - **Result (full Measure):**
- **Holds.** No class count falls on any model. The only family lines
that leave `mesh_bodies_vs_ifc` are pushed off the end of its list of
the largest families by the new ones (`PK-1:PK-1.3800` on the offices,
`UO-3` and `UO-4` on the housing). No `psets_vs_ifc` or `qtos_vs_ifc`
line moves. `door_bodies_vs_ifc` moves 4 housing doors from "mirror rule
wrong" to "rvt-rs's box is Revit's".
- `schema.txt` moves on 21 models. On each, the count of swept solids
placed apart from their product falls by exactly the number of bodies
newly drawn there. On Snowdon plumbing the export grows from 112 MiB to
130 MiB, past the 120 MiB Measure validates (#1532), so Measure skipped
it. Read locally with IfcOpenShell 0.9.0.post1 as Measure reads it
(`tools/ci/ifc_validate_summary.py --both`): 0 validation findings and 0
EXPRESS-rule findings, as on main.
2. **Every body newly drawn that Revit exports is checked**, on
`mesh_bodies_vs_ifc`'s class counts, since its list of bodies holds only
some and `far_vertices_vs_ifc` does not read `IfcFurniture`. For each
class that gains bodies, each count of bodies within a bar rises by as
many as the class gains:
    - Revit's vertices from rvt-rs's surface within 0.01 ft;
    - rvt-rs's vertices from Revit's within 0.01 ft;
    - the volume within 1 per cent of Revit's.
A count that rises by less means a newly drawn body fails it, and those
bodies are read face by face before anything lands.
    - **Result (full Measure):**
- **Fails on `IfcFurniture`** on the four office files: 30 gained, each
count rises by 0. Read face by face
([comment](#2102 (comment))):
the faces meet within 0.001 ft, and Revit's export draws the round bar
with a square along its legs and straight pieces on its U-bend.
- **Holds on `IfcDoor`**: on each housing file 4 gained, and the 0.01 ft
and 1 per cent counts each rise by 4; on the held-out house 10 of 10.
Their 0.001 ft and "ref on ours" counts do not rise (the comment reads
one door).
3. **The shared reader changes nothing else.** `ring_impl` also reads
planar faces and the cylinder's one-loop rings, and a plane beside a
two-loop cylinder now refines its edge on that cylinder's steps. On
every export that moves, no body drawn from a saved mesh on both sides
changes its mesh (`ifc_body_diff.py`'s count, expected 0).
    - **Result (full Measure):**
- **Holds**: 0 on all 94 export pairs read. The held-out house's export
is not kept, so it was not read here. At `d46bfeff`, `ring_impl` is as
on main: the full-turn reader and the open ring it needed are removed.
4. **Nothing newly refused.** No refusal reason in any
`diagnostics.json` rises, except where bodies leave `multiple cylinder
trim loops unsupported` for one of the new two-loop reasons or a later
one. Each such move is listed by reason.
    - **Result (full Measure):**
- **Holds.** 1,289 bodies named that reason alone and are drawn. 97 more
named it with others and now name only the others: 60 `a trim loop does
not close in the surface's parameters; disconnected UV boundary;
unsupported surface HermiteSurf`, 21 `face regions need subdivision`, 10
`unqualified collapsed ruled profiles; unqualified collapsed ruled
trim`, 6 `disconnected UV boundary`. No body names a two-loop reason.
5. **The same-project gates pass**, and no held-out export moves away
from Revit.
    - **Result (full Measure):**
- **Holds** on `1ab9c54e`: "pass: 15 samples held to their earlier
saves, and the Areas on 4 saves and on the 2021 save". `d46bfeff`'s
exports are byte-identical to it. The held-out house moves only by its
10 doors (row 2).
6. **As they come:**
- the bodies that named the reason alone (30 on each office file, 4 on
each housing file), drawn or with their new reason;
    - bodies newly drawn by file, from `diagnostics.json`;
    - which exports move, by model.
- **Result (full Measure):** the 30 on each office file and the 4 on
each housing file that named the reason alone are drawn. The bodies
newly drawn and the exports that move are listed by file and class in
the Summary above.

**What each outcome means, written before the run.**
- If rows 1 to 5 hold and row 2 checks at least one body, the change
goes for review with its report and a changelog fragment.
- If those bodies come back with a new two-loop reason, that reason is
their shape. It is read before any change to the reader.
- If row 2 fails, the failing bodies are read face by face before
anything else.

**The outcome.** Rows 1, 3, 4 and 5 hold, and row 2 checks the doors,
which pass. Row 2 fails on the 30 grab bars a file, read face by face as
registered: Revit's export draws the round bar as a square along its
legs. Landing with row 2 failed on them is outside the outcomes
registered above; it is Griffin's decision (2026-11-20), to ship them
drawn round, as the file saves them, with the miss on record.

**The bodies no Revit export in Measure scores** (1,153 on the samples)
were read four ways: against the record box each replaced (Revit's own
box for the element, along its three axes), against Revit's IFC4 export
of Snowdon architectural, against the VIM export of Snowdon, and with
the crack probe.
- The rme pipe fittings fill their boxes to within 0.1 mm on all nine
rme files. The same-project gate holds the 2025, 2026 and 2027 saves of
rac advanced, rac basic, rme advanced, rme basic and rst basic to their
2024 saves, so it holds these fittings on six of them.
- No Snowdon body reaches past its box, except the 108 sanitary
terminals, by up to 1.4 mm (median 1.0 mm). The five trash chutes fill
theirs exactly.
- Two classes stop short of their boxes, and the VIM does too. All 36
duct fittings are `Round Tee:Standard`: 21 stop more than 1 cm short, up
to 42 mm (36 mm the median of all 36). The four read by axis stop 42 mm
short on the low side of two of the box's axes (extents 0.32, 0.30 and
0.32 m). 13 of the 404 air terminals (`Supply Grille`, `Return Grille`)
stop 10 to 21 mm short on both sides of two axes. On two tees and two
grilles read, the VIM's mesh has rvt-rs's height (0.2812 m and 0.1218 m)
and its extents within 9 mm, so the space is in the box alone.
- Snowdon architectural's 7 (a column, five trash chutes and an
appliance) were also read against Revit's own IFC4 export of that file,
from bldrs-ai/test-models, which is not in Measure. On all 7, Revit's
vertices are within 0.001 ft of rvt-rs's surface and the volume is
within 0.8 per cent of Revit's. On the column and the five chutes,
rvt-rs's vertices stand up to 0.0129 ft off Revit's, so those six would
fail the 0.01 ft bar. Revit writes all 7 as explicit facets
(`IfcPolygonalFaceSet`); which of their parts are round is not read.
- Snowdon HVAC's 440 and plumbing's 108 were read against the VIM export
of the model's 2027 edition (vimaec/vim-hackathon: the meshes Revit gave
the VIM exporter, for every element of all six documents; kept local),
with `tools/re/footing_meshes_vs_vim.py --document HVAC|Plumbing`:
- Height and lowest point: all 36 duct fittings and 108 sanitary
terminals within 0.001 m of the VIM's, and 391 of the 404 air terminals
(the other 13 by 0.00107 m).
- Volume: the air terminals are 1.1 per cent over the VIM's. The duct
fittings are within 8.7 per cent, inside the 30 per cent main's 961
already show.
- The sanitary terminals' volume figure is not a volume. Three were read
shell by shell. Each holds a trap body open in both exports (158 and 110
edges one triangle holds). rvt-rs's reads 0.000930 m³ on all three, and
the VIM's reads −0.000145, +0.000220 and +0.001962 m³, so the spread is
the VIM's open shell taking its placement into its signed volume. Their
closed pipes are 6.2 to 6.7 per cent over the VIM's, whose pipes have
about ten sides where rvt-rs's are round.
- Whether their faces meet: the #2098 crack probe at `06e22382` on every
2024 to 2027 sample
([44663576285](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44663576285)).
- Snowdon plumbing: all 121 bodies it reads meet within 0.00093 ft. The
rme pipe fittings meet within 0.00092 ft on every save from 2024 to
2027, and the trash chutes and the appliance within 0.00012 ft.
- Snowdon HVAC: 404 of 440 meet within 0.001 ft. The other 36 are the 36
newly drawn `Round Tee:Standard`. Each has 32 boundary vertices beyond
0.001 ft, up to 0.00158 ft, all where one cylinder face meets another:
1,152 new gap vertices on bodies this change draws. The probe's commit
holds `1ab9c54e` with two probe commits on top. With two-loop faces
marked (`87b23899`,
[44679890567](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44679890567)),
each tee's 32 split evenly: 16 on its two-loop face stand off the
one-loop cylinder beside it, and 16 on that cylinder stand off the
two-loop face. So each face puts points on their shared edge that the
other does not hold, the same kind as the 588 between two cylinders that
RE-493 left on main. Putting both on the edge's saved points is not done
here.
- Snowdon architectural's column has 4 beyond 0.001 ft, up to 0.0011 ft,
where a ruled face meets a plane.
- Snowdon has one save, so no gate holds its 556 bodies. A box larger
than the body says nothing by itself: the sauna doors' boxes are 0.82 m
larger than bodies that pass row 2.

## Audit-honesty checklist

- [x] The report
(`reports/element-framing/RE-494-cylinder-two-trim-loops.md`), the
changelog fragment and the `docs/format-reconnaissance.md` addendum
follow the decision on the 30 grab bars.

## Review

Self-approved by the maintainer session that wrote it, after reading the
whole diff again at `968e15f8` (`src/research/native_saved_mesh.rs`, the
report, the changelog fragment and the three docs pages); the second
reader is not running. The tees' gaps between two curved faces, and the
column's at a plane, are tracked in #2104; Snowdon Plumbing's export
passing the 120 MiB Measure validates, in #2103.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary source, decompiled internals
or NDA content (CLEANROOM.md).
- [x] No new fixtures.

## Breaking changes

None: research module internals only.
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