Repository navigation
Description
Summary
Loadable families other than doors and windows (furniture, fixtures, equipment, MEP devices and others) were written as their bounding box unless rvt-ifc --saved-meshes was given. With the option, the mesh Revit saved for each element's display is drawn, and it is Revit's own shape wherever all of it decodes. Since #1610 (the maintainer's decision of 2026-11-09, "All classes, whole meshes only") every boxed element of a Revit 2023 to 2027 file is drawn from its saved mesh by default, with --no-saved-meshes to keep the boxes. W6 of the 1.0 release criteria asks that no body be a bounding box.
Where things stand
- Every boxed element is drawn from its saved mesh by default on Revit 2023 to 2027, where the whole mesh decodes (feat(ifc)!: every element that would be a box in a Revit 2023 to 2027 file is drawn from the mesh Revit saved for it by default (#1191) #1610; RE-78, RE-224). A mesh with a face that does not decode keeps its box: 124 of the BIM4LCA office as built's 11,246 boxed bodies.
- Per class, against Revit's own export ("ref on ours": every vertex of Revit's export within 0.001 ft of the mesh; 31 models, Measure run 42612357300): 17 classes are exact, and doors are 675 of 681, sanitary terminals 68 of 94, flow fittings 71 of 89, flow terminals 30 of 35 and walls 14 of 18.
- It costs 1% to 17% more time and up to 59% more peak memory (Measure run 42614230465); feat(ifc)!: every element that would be a box in a Revit 2023 to 2027 file is drawn from the mesh Revit saved for it by default (#1191) #1610 has the table.
- feat(saved-graphics): mesh cone faces, spline-profile surfaces and cylinder faces with non-rectangular trims #1144 proposes meshing cone faces, spline-profile surfaces and cylinder faces with non-rectangular trims, which is part of this. Since the default now draws every class, a decoder that turns a box into a mesh that is not exact makes the default export worse, so each is measured against the bar on the default export.
Done when
- The faces the reference models' saved graphics use decode, so that a mesh is drawn wherever Revit saved one.
- Each class's meshes are measured against Revit's own export, every vertex within the tolerance the report states, and the supported profile says which classes are not exact and why (the maintainer drew them by default regardless, 2026-11-09).
Where to start
src/ifc/saved_meshes.rs, src/research/native_saved_mesh.rs and src/research/native_parametric_surface.rs, with tools/re/box_bodies_vs_ifc.py, which counts in Measure the bodies still drawn as their box per class.
Activity
docs: cite every open 1.0 issue on the criteria page, and list the ne…
n3ur0m4n commentedon Nov 7, 2026
Measured on the public reference models in
_project_corpus, v0.15.0 (ab5f8e1) against the same tree with five moresaved-graphics decoders (spline profiles GHermiteSpline/GNurbSpline, HermiteSurf, nonrectangular parametric trims,
cylinder faces with several trim loops, edge ends that miss in UV but meet in model space).
Default export (doors and windows from saved meshes): byte-identical glTF on all six models. No door or window moves.
--saved-meshes,tools/re/saved_meshes_vs_ifc.py(box within 0.01 ft of Revit's export):tools/re/box_bodies_vs_ifc.py: record-box bodies RE1-Electrical 2 → 0, RE1-Architecture 4 → 3.Vertex distance to Revit's IFC mesh (ft, reference→ours / ours→reference) for the three bodies that change:
Saved-graphics decode (every element, not only exported bodies): +16 elements with no diagnostic, none lost; elements
already clean keep identical vertices (26 drop only zero-area triangles). Cost: RE1-Electrical
.glb0.18 → 1.9 MB,export 1.2 → 2.0 s; the other models unchanged in size and time.
Still open on these models: GEllipse profiles (2024_Core_Interior 34471/34930), four "disconnected UV boundary" faces
in RE1-Architecture. Not measured on the BIM4LCA office (not available to us).
The change is one commit on v0.15.0 (ab5f8e1), branch
saved-graphics-decoders, commit 8069fb9f;cargo test --features unstable-researchpasses. Happy to compare before anything lands, or to open a PR if you want it.DrunkOnJava commentedon Nov 8, 2026
@n3ur0m4n thanks, this is useful, and a default export that stays byte-identical makes it easy to take in pieces. Yes, please open pull requests, one decoder per pull request so each can be measured alone, smallest first. I'll run Measure on each head with
--saved-mesheson the BIM4LCA office, which you can't reach, and post the figures.Three things each one should address:
mainbecause the bodies they drew weren't Revit's. Your "cylinder faces with several trim loops" and "nonrectangular parametric trims" overlap those, so those two need to say what's different now, ideally that the bodies that failed in those runs pass.tools/re/saved_meshes_vs_ifc.py's fine tessellation (-f fine_mesh=truein Measure) can separate the two where both files write curves..glbgoes from 0.18 to 1.9 MB, and 369643 is 15,744 triangles against Revit's 2,180. Please report triangle counts and size per pull request, and choose the chord tolerance by distance to Revit's export, as we discussed on feat(saved-graphics): mesh cone faces, spline-profile surfaces and cylinder faces with non-rectangular trims #1144.These only change opt-in
--saved-meshesoutput, so a decoder that meets the bar can land without touching what the default export draws.GEllipseand the disconnected UV boundaries can stay out until there's a measurement for them.DrunkOnJava commentedon Nov 9, 2026
@n3ur0m4n, one change that affects how your decoders are measured. #1610 makes saved meshes the default for every class on Revit 2023 to 2027 (the maintainer's decision of 2026-11-09, with
--no-saved-meshesto keep the boxes), so a decoder that meets the bar now changes the default export, not only--saved-meshes.The three things I asked of each pull request stand, measured on the default export instead: the bar is still Revit's vertices within 0.001 ft of our surface ("ref on ours"), the figures are still triangles and size per pull request, and I run Measure on the BIM4LCA office. What changes is the cost of getting it wrong: a body that is not exact is now drawn by default where it used to be a box, so a decoder that moves a class from exact to not exact will not land. #1610 and #1191's body have today's per-class numbers (17 classes exact over 31 models; sanitary terminals, flow fittings, flow terminals and walls are not).
54 remaining items
research(ifc): RE-460 section 7 gives rows 3a and 3b as measured, the…
research(ifc): RE-460 rows 3c and 3d: the railings' saved graphics ho…
DrunkOnJava commentedon Nov 14, 2026
Rows 3c and 3d, read on 43533924030 (
c0f682b0).3c holds, and it ends the railing question for these two. The record of r2025's railing 13680 holds one
InstanceInfo; its symbol 13681 holds the 12 faces (8HermiteSurf, 4Plane) and noInstanceInfoorGInstance. 13684's chain (13685) is the same. So the 54 of 630 vertices of Revit's body that no face drawn explains are not in the railing's saved graphics at all, and a body drawn from them cannot meet the 0.001 ft bar.3d, for the office's railing 3076853, is different and not settled. Its symbol 3076854 holds 20 faces (16
HermiteSurf) and 103 nestedInstanceInfo. Of Revit's 1,651 vertices of it, 1,519 are within 0.001 ft of the body drawn (92.0%), 1,540 within 0.005 ft, and 71 are over 0.05 ft away, the farthest 0.1275 ft. Which of the 103 nested symbols hold those 71, or whether any does, is the next thing to read.What Revit's rail looks like where the faces stop explaining it: at one station of one r2025 rail (0.25 ft wide, 0.1667 deep), Revit's body has vertices at the centre of the top and bottom faces and, at the two sides, at 0.0442 and 0.1643 ft up, which is 0.081 ft above the top face the 4 faces draw, at about every third station. The faces are right where they are (the twist and the interiors, above), and Revit's rail is taller than they are at those places.
RE-460 section 7 has the rows and the tables. #1941 stays a draft: nothing of it lands or is on by default until a railing's whole body is within the bar, and for the r2025 railings the saved graphics cannot supply it.
docs: ducts, fittings, opening cut loops, the stub wall and family re…
docs(criteria): the practitioners' reports row passes with the third …
feat(saved-graphics): a Hermite spline profile is read and drawn, and…
fix(saved-graphics): a tube's open rings need an edge, its refusals n…
probe(saved-graphics): a cylinder face's two loops on part of a turn …
feat(saved-graphics): a cylinder face with two loops on part of a tur…
style(saved-graphics): the even crossing count says is_multiple_of, a…
refactor(saved-graphics): two cylinder trim loops making a full turn …
feat(saved-graphics): a cylinder face bounded by two trim loops, a ho…
fix(saved-graphics): count cylinder trim crossings inside each strip (#…
docs: the rooms table is today's run, and the demos, library, MCP, fo…
fix(compare): the IFCSPACE compare note, the saved-mesh outline sourc…