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
Family instances that stay boxes: expose symbol geometry and instance placement #2085
A Revit 2024 project has a furniture family with 448 placed instances. The reader returns every instance as a box:
324 partition_family_instance_turned_box
124 partition_element_record_bbox
geometry hash unit-box-v1
no LOD2 or saved display mesh
The family_extrusions path only rewrites instances whose body is already a saved mesh (BodySource == saved_graphics_mesh with a triangulated face set). These instances never enter that path, so the family's authored geometry is unavailable even though the family document is in the file.
Ask
A generic API that returns a family symbol's body/display geometry plus each instance's transform, so a consumer can draw N instances from one shared symbol. This must not be a per-family special case.
Saved display mesh access for family instances that have saved graphics but are currently returned as boxes or refused.
A no-geometry marker for elements whose source genuinely has no 3D geometry. A record box should not be the only way to express that.
Capability clarity: does family_extrusions cover only extrusions, or also sweeps, blends, revolutions, and nested families? Are instance transforms complete: rotation, reflection, translation, and scale?
Constraints
Preserve the existing export, saved-mesh selection, geometry, and property output.
Keep the generic API stable enough for a thin adapter; no family-name branching in consumers.
A consumer validates against the source inventory and a Revit IFC/FBX oracle where available.
Minimal repro
The source model is customer-derived and is not public. I can provide element counts, a reduced .rvt fixture privately, or a synthetic artifact if that helps. The behavior reproduces on any model with a boxed family instance whose family has extrusions/forms but no saved display mesh.
Thank you, @shifatrHtH. This is a clear report, and it sits right on the next work for family instances (#1191 for saved meshes, #1189 for families). Your point 4 first, because it frames the others.
4. What --family-extrusions covers today
Extrusions only, with profiles of lines and arcs. A family with a void, an ellipse or an open sketch draws nothing, and sweeps, blends and revolutions are not read for project instances. Nested families are not followed.
An instance is drawn from its family's extrusions only where they reproduce that instance's own saved mesh. The family document holds the family as it was saved, while each instance is drawn at its type's values, so the saved mesh is what proves the rebuilt body is that instance's. An instance with no saved mesh therefore never enters the path. That is what you saw, and so far it is deliberate.
Placement: translation and rotation, tilted instances included, on Revit 2024 to 2027. A mirrored instance's transform is not read, and scale is not read.
Why the 448 are boxes: two counts would tell us which of your points applies. Each boxed element records why its saved mesh was not used, as its SavedMeshRefusal property and in the saved_mesh_not_used rows of --export-decisions. Could you post the counts by reason for the 448, and the --family-extrusions summary line of that run? Counts only.
no_saved_graphics or no_saved_mesh: the file holds no display mesh for the instance, so only the family's own forms can draw it. That is your point 1.
1. Symbol geometry plus instance placements. The parts exist in rvt::research (the family's forms, the instance transforms, the saved meshes), but not as one call, and not for an instance with nothing to check it against. I am going to measure that case on the open models: for boxed instances with no saved mesh whose family's forms all rebuild, how close the rebuilt body comes to Revit's own export of the same model. If it holds, it ships as an opt-in with its own BodySource, so a consumer can always tell it from a checked body, and the one-symbol-many-placements call comes with it, with no family names anywhere in it. I will post the numbers here either way.
3. A no-geometry marker. Today the reason is on each element (BodySource says the body is a record box, SavedMeshRefusal says why), but it does not separate "this element has no 3D geometry" from "its geometry was not read". I agree that is worth a marker of its own, and I will propose its shape here once the counts above show which cases it has to cover.
No fixture needed yet; the counts are enough to start.
@shifatrHtH, the numbers I said I would post on point 1, either way.
I counted, on every open model we measure, the family instances an export leaves as a box because the file holds no saved mesh for them, and how many of those could be drawn from their family's own geometry instead. The probe is probe_2085_boxed_family_instances on research/2085-boxed-family-instances (1e789567), and tools/re/probe_2085_vs_ifc.py scores what it draws against Revit's export. Counts only. Runs: 44518207279 (the 42 models with Revit's export, scored) and 44518217138 (Autodesk's samples of 2015 to 2027; the counts below are of the 2024 to 2027 saves).
Files
Bodies boxed for want of a saved mesh
Of them family instances
Could be drawn from their family's own extrusions
42 models with Revit's own export (BIM4LCA, RE1, Core Interior, Einhoven, 24 Revit 2025 models)
57
48
1
Autodesk's samples of Revit 2024 to 2027: five projects saved in each of the four releases, and Snowdon Towers' five 2024 models
501
501
0
The samples' 501 count a project's instances once in each release it is saved in: they are 339 different instances. The 42 models' 48 family instances are the BIM4LCA housing's 44 sanitary terminals, 2 RPC trees (one on each office terrain file), 1 opening on RE1 Architecture and 1 column on the BIM4LCA office. The column is the one that could be drawn, and the scorer finds it not in Revit's export, or with no body there, so there is nothing to check it against.
Why the rest are not, and what following nested families gives. The biggest group is a family with no form of its own that nests another family: 293 of the samples' 501 (155 different instances), and the BIM4LCA housing's 44 (one family, 11 on each of four files). So I followed those nested families: the probe now finds each nested family's own document and where its instance sits in the outer family, and draws it from its extrusions and revolutions, or from the saved graphics of its own forms, with every reason listed where it cannot.
The housing's 44. The nested family is two revolutions, one sweep and two imported CAD objects. The rebuild meshes one revolution (the other is refused as profile crosses axis or opposite half-plane) and has no sweep or imported geometry. The family's own saved graphics mesh both revolutions; the sweep's have faces the mesher cannot bound, and the two imports are placed by a scaled instance, which the graphics reader does not take. So none of the 44 can be drawn or checked against Revit's export yet. What stops them is those two: the sweep's faces and scaled instances.
The samples' 293. On all of them the nested family holds no extrusion, revolution, sweep, blend, import or free-form solid, and no visible model text. On 284, the outer family's saved graphics for that nested instance mesh whole with no triangle, hidden and filtered parts included, and hold only lines. On the other 9, the nested instance has no saved graphics at all, which is also where the probe reads its placement. So nothing in either family draws a solid. No Revit export of the samples exists to say what Revit writes for them, but the BIM4LCA office's two terrain files hold the same case with Revit's export beside them: an RPC tree whose family nests one with no form. Revit's export does give it a body, and that body fills 0.8 per cent of its own bounding box (box_bodies_vs_ifc, run 44486295483). So Revit draws something there that none of the family's forms hold, and a record box is far from its shape.
The other groups:
The family holds no form at all, nested or its own: 99 of the samples' instances (75 different).
Its own forms are all ones the extrusion rebuild does not draw (a sweep, blend or revolution): 17 (17 different).
The family has a void: 92 (92 different, all on Snowdon Towers). The rebuild refuses a family with a cut, because it does not draw the cut.
So on the files anyone can fetch, neither a family's own extrusions nor its nested families draw any instance of your case that can be checked.
To see whether your 448 split the same way, the probe is built for you:run 44518234434, commit 1e789567, with a SHA256SUMS and a BUILT-FROM.txt in each download:
probe_2085_boxed_family_instances-g1e789567-aarch64-apple-darwin (macOS on Apple silicon; the binary is unsigned, so xattr -d com.apple.quarantine probe_2085_boxed_family_instances once before running it)
Run it as probe_2085_boxed_family_instances MODEL.rvt. Your model is customer-derived, so post only its file, tally and nested_family lines: probe_2085_boxed_family_instances MODEL.rvt | grep -E '^(file|tally|nested_family) ' on macOS or Linux, probe_2085_boxed_family_instances.exe MODEL.rvt | findstr /R "^file ^tally ^nested_family" on Windows. Those lines are counts, classes and reasons, plus each nested family's ElementId, which you can blank out. The instance lines carry ElementIds, volumes and box corners, and the formless lines family ElementIds, so keep those to yourself.
@DrunkOnJava thanks for building the probe. I ran the exact Apple Silicon artifact from run 44518234434, built from 1e789567, on the same Revit 2024 save used for the 448-instance report. I verified the download checksums and matched the input locally to the save used for the separate audit. The probe exited 0 with empty stderr.
Standalone probe result
Here are the sanitized file, nested_family, and tally excerpts from that run:
The sole eligible element had SavedMeshRefusal = no_saved_mesh. The probe reported a nested-family rebuild for that proxy. I checked the candidate's ElementId locally against all 448 target IDs and found zero matches. The 576 count is model-wide. The probe's candidate filter selects no_saved_mesh and no_saved_graphics.
Separate 0.25.0 Saved audit
I joined the source audit to the 448 target instances by ElementId locally and read SavedMeshRefusal after Saved attach:
Refusal
Target instances
partial: missing current symbol graphics ######
448
no_saved_mesh
0
no_saved_graphics
0
The suffix is masked in the diagnostic, so the count is per instance. The number of distinct unresolved symbols is still unknown. These were all box bodies in the 0.25.0 output.
I cross-checked the same 448 targets directly in a second 0.25.0 export run with the same option as --family-extrusions. All 448 had the same refusal and still had box bodies (324 turned boxes and 124 record boxes). The run reported zero unread streams. Here is its full family-extrusions summary, wrapped for readability. It describes the model-wide Saved-mesh candidates.
33 of 580 saved-mesh bodies drawn from their family's extrusions (31 families found, 22
rebuilt; 297 had no rebuilt family, 0 no instance transform, 18 a mesh too large to compare;
the extrusions did not reproduce the mesh of 195 by volume, 30 by vertices and 7 by surface; 0
reproduced but not writable; 16 of the drawn ones have an arc written in a profile; 0 left
alone for sharing a Tag)
How should I trace the symbol lookup?
For partial: missing current symbol graphics, is there an existing probe or a small instrumentation point you would recommend to determine whether the referenced symbol graphics are absent from the save or present but missed by the current-symbol resolver? If the diagnostic can also distinguish a matching record whose graph could not be decoded, that would help narrow it down. I can run the check locally and report aggregate counts per outcome and per distinct symbol with the identifiers removed.
@DrunkOnJava I ran a targeted resolver trace on the same Revit 2024 save as the previous probe and audit. Both referenced Saved graphics records are present and selected. The graph reader rejects them at the field-value budget before the resolver can use them.
How I checked
I used the pinned rvt-rs 0.25.0 library (e3a94048) and matched the input locally against the save used for the earlier audit. A focused run of the batched Saved reader reproduced missing current symbol graphics on 448/448 target instances. The one-shot reader reported exactly the same two unresolved symbol references, used by 190 and 258 instances.
I then walked the partition records without the handle's record index. Both references have physical records in the project's channel 103, and a separate current-record scan selected both as GElement. It reported zero unread partitions and decoded all ten positive-control symbol graphs. Both target graphs failed in the projected Saved-graphics read and the full graph read at the same field path:
HermiteSurf.m_NodeArray → SplineSrfNode.m_iTangent
native field value budget exceeded (1000000)
That accounts for the missing-symbol message on this save. The current-record lookup succeeds, but the graph decoder supplies no graph to the resolver.
What the higher limit exposed
In a scratch probe I varied only the field-value cap and kept the graph-object cap at 1,000,000:
Field-value cap
Symbol graphs decoded
Instances reporting missing symbol graphics
1,000,000
0/2
448/448
2,000,000
2/2
0/448
The larger successfully decoded graph used 1,789,525 field values. After both graphs decoded, 448/448 chair meshes were still partial and zero were complete on 0.25.0. The next refusals included unsupported surface HermiteSurf, unsupported parametric profile curve GHermiteSpline, disconnected UV boundaries and parametric trims, and trim loops that did not close. The higher cap was a diagnostic to expose this next stage.
What would you like me to test next?
Is there an existing way to read or project these HermiteSurf node arrays within the current budget? Would it help to carry the graph-decode refusal through the symbol lookup so this case can be distinguished from an absent record?
Is there a particular commit you would like me to test for the remaining mesh refusals? #2094 and #1941 look relevant to the profile and surface errors, respectively. I can run your preferred candidate locally and report complete versus partial counts and comparison against the same-save Revit export.
@shifatrHtH, thank you, both for finding the pairing fault in a04d11f8 and for testing the shared-edge build so quickly (your run). Your two arms settle what the join can do on these chairs today:
At 0.0001 ft it closes no ring: the 8 pairs under the limit sit on 16 faces that each have a wider gap too. That is why the toggle changes nothing.
At 0.0004 ft it closes all 48 remaining cylinder faces, 14 planes mesh with them, and coverage from Revit to the partial mesh goes from 67.6% to 71.5%. No chair reaches 99% both ways.
Your question: trace the revolved-face and plane failures first. They are what still refuses.
A public arm of the wider bound would show nothing yet. On the 71 public models and samples the probe reads, no stored pair meets the shared-edge and spline conditions at any width. The other 30 are Autodesk's samples of 2015 to 2022, which its native reader refuses (Measure 45002253953). The orientation rule alone finds pairs on the office as built, the four housing files and rac_basic's 2023 to 2027 saves, and Revit's export judges none of them. So a public arm could only show that nothing moves. That run is for when a bound goes to Griffin, made with the join on through a flag Measure can set, since it cannot set the variable.
Two things before any bound over 0.0001 ft.
The case where Revit keeps both ends. Under the orientation rule alone, only the limit kept it out; whether the shared-edge and spline conditions keep it out too is not yet known. Please report its width and which it is: the scorer's coordinated join line, already at 23d72e02, says whether a corner is the export's join or meets the orientation rule only. If it is the export's join and under 0.0004 ft, your scratch arm joined a gap Revit leaves open, and the conditions have to be narrowed before that bound means anything.
The widest of the 40 pairs. The same line prints it. A limit comes from that, not from a round number.
For Griffin, when it is ready. His bound for ring ends is 0.00001 ft, and loosening it is his call, on a measured rule led by how many distinct gaps and families it holds on. Today that is 40 stored pairs, one family, one save. The export draws a saved mesh only where all of it decodes (RE-224), so until the revolved faces and the two planes read too, the join changes no export on these chairs. That is why it does not go to him yet.
7ff403b6 is your 23d72e02 with two additions:
a pairrings line: how many rings the join touches and how many it closes;
a test-only attribute, which changes no export.
With the join off, all 101 exports and all 101 diagnostics are byte for byte as before. Clippy and the join's four tests pass on #2141, a draft opened only to run CI on this code.
@DrunkOnJava, the exact 23d72e02 scorer passes row 0 and gives the needed separation. The both-end case is orientation-only, one stored pair and six corner occurrences, at about 1.10e-4 ft. It fails the reciprocal shared-edge and spline topology test, so the 4e-4 ft scratch arm leaves it out even though it is within that numeric bound.
All 40 topology-qualified chair pairs have the last/first ring's Q in Revit, split as the scorer reports: eight pairs / 1,792 corners below 1e-4 ft, and 32 pairs / 7,168 corners at or above it. The largest paired gap in the probe is 3.728e-4 ft. That is the probe's model-space endpoint separation. The join itself measures distance along the surface, so I would keep those two measurements explicit if proposing a bound.
I am tracing the two adjacent-plane refusals and the remaining revolved trim gaps against the same-save IFC, with separate placement controls for the two checks.
@DrunkOnJava, I traced both remaining refusal types on the wider scratch build, with separate raw IFC placement controls for each. The diagnostic adds rows only.
Revolved trim. The eight refused SurfRev faces contain two stored gaps each at or above the parametric 1e-5 ft cap: 16 gap views, eight stored corner pairs, with the largest gap about 8.39e-5 ft. Each pair shares exactly one reciprocal edge between its two revolved faces, at the same stored edge end. The other edge in each view leads to a separate HermiteSurf face. Each pair has one last/first view and one same-end view. The cylinder orientation rule proposes the same point to within 1e-7 ft in both views on every pair.
The standard scorer reads eight distinct gaps and finds one Revit endpoint on all eight. The other eight are below its two-tolerance resolution floor. In a separate raw-vertex sensitivity check, all 3,584 closed-end controls are within both 1e-6 and 1e-7 ft. At both tighter bounds, all 16 gaps resolve, all 3,584 gap occurrences select the orientation rule's point, and both views agree at all 1,792 corners. The standard raw and unwelded read agrees wherever it can distinguish the ends.
Remaining planes. The two plane faces refuse at four distinct shared edges, each bordering a revolved face. The original six samples on each edge have one endpoint that leaves the adjacent plane. Across 448 placements that makes 896 offending endpoint observations. Revit's raw IFC has the plane-side saved sample on all 896 and the curved-side sample on none, at 1e-5 ft. Their two placements differ by about 3.88e-4 ft. The 1,792 retained closed-end controls give a near-zero floor. No offset is applied.
The revolved gaps now have evidence for the same reciprocal-edge / spline pairing and endpoint choice at the existing coordinated test bound. The plane result supports testing a shared anchor at the original planar sample, with the curved face using that same point so the seam can be checked. Those are two separate candidates. I can retest the exact implementation and compare complete meshes, the same-save score, and the controls.
@shifatrHtH, thank you for both traces (the scorer split, the two refusals). The both-ends case failing the topology test is the answer that mattered: the conditions keep it out, so the width limit no longer carries the rule.
Both candidates are built, at 0bccdc09, each behind its own variable.
The revolved faces join under the cylinders' rule (RVT_2085_COORDINATED_JOIN).
One function decides the pairing:native_saved_mesh::coordinated_join_keeps, which the export calls for cylinders and for revolved faces alike. It allows two cylinders or two revolved faces, never a mixed pair. Their rings must share one stored edge at the same stored end, and each other edge must lead to a spline face. One ring reads last/first, the other first/first or last/last.
What a revolved loop does at an approved gap: it keeps the end the rule names, where the loose join takes the point halfway. A step across a seam or to a pole is still refused. The loose join's short-edge guard still holds, and a gap is taken only where the edge's far end is past the limit, as on cylinders.
The limit is 3.75e-4 ft, just over the widest of your 40 cylinder pairs, 3.728e-4 ft in model coordinates, so it is fitted to one family on one save. The join measures along the surface on a cylinder and in model coordinates on a revolved face. The probe's new exportkeep lines print each gap's width in the join's own measure, so the two can be told apart.
The plane anchor, plane side only (RVT_2085_PLANE_ANCHOR).
What it does: at a plane's edge shared with a curved face, an end sample of the curved face's that leaves the plane is taken as the plane's own saved sample, within 3.9e-4 ft, just over your 3.88e-4. The samples between must still lie on the plane, and the curved face keeps its own point for now.
It may not be enough. The points between the last good sample and the bad end are still projected from the curved face. If they leave the plane too, the face stays refused, now at one of those points. The curved side, taking the plane's point, would be the next step.
Where the export reaches, by its own function (Measure 45063258002, at baf5ccc5):
exportkeeps reads 0 gaps on all 71 public models and samples the probe reads. The other 30 are Autodesk's samples of 2015 to 2022, which its native reader refuses.
With both variables unset, all 101 exports and all 101 diagnostics are byte for byte as before, and the run's only other differences are those exportkeeps lines.
The three commits since change only the two guards above, inside the switched code, a type's name and a test's argument. None is reachable with the variables unset.
What has run and what has not. Clippy and the library tests pass on this code (#2144, a draft opened only for CI). The join's four tests are of the cylinder ring only. The revolved loop's keep and the plane anchor have run on no file and have no test, so your run is the first time either executes.
What passes, set before your run. With the coordinated join on and the anchor off, then with both on:
First, exportkeeps on your save. By your counts it should read 96 gaps, 80 on cylinders and 16 on revolved faces, the widest under the limit. That is the check that the export's function and the probe's exact agree. exportkeep lists the gaps the pairing approves; a ring's own guards (the far end, a short edge) can still refuse one.
Pass:
the 48 cylinder faces and 14 planes mesh as in your 0.0004 ft arm: the limit is now 3.75e-4 ft along the surface, so this shows no pair fell outside it;
the 8 revolved faces mesh with the join, and the 2 planes with the anchor too;
Revit keeps the named end at every gap the join takes;
nothing else is refused, the controls are byte-identical, and with both unset nothing changes.
Report too, as two counts: the chairs with no refused face left, and the chairs at 99% both ways. The export draws an element's saved mesh only when none of its faces is refused (RE-224), so the first count says whether the chairs export at all.
Fail: any new refusal, any change to a control, or a gap the join takes where Revit keeps the other end.
For Griffin. His bound for ring ends is 0.00001 ft. Revit's choice is measured on 48 stored pairs and 4 plane edges, all on one family on one save. It comes to him once a run like yours shows the chairs exported whole.
@DrunkOnJava, I ran the requested replay at exact 0bccdc09. The coordinated join and plane anchor recover the expected faces, and the controls stay byte-identical. With both switches enabled, the remaining Hermite trim refusals leave 0/448 complete chair meshes and 0/448 passing the bidirectional Revit surface check.
With a local opt-in review stack on the same revision, the ordinary whole-document export path admits 448/448 complete chair meshes. All 448/448 pass the same-save Revit IFC comparison, with at least 99% of 4,096 surface samples within 0.01 ft in each direction. The control meshes are byte-identical. This uses the research branch’s stock graph budget. The graph-limit API proposal is separate and preserves main’s default.
I have generated, model-free reproductions for the narrow parametric strip and Hermite perimeter failures, along with separate patches for the shared-boundary checks and the revolution trim grid. The narrow-strip repair stays opt-in in the combined trial. Public housing checks recovered some matching faces while other standalone face recoveries still need an explanation. Which patch would you like to review first? I can start with the isolated narrow-strip change against main, or send the Hermite perimeter regression first if that would be more useful.
For the separate curved arch-corner case, #2120 clears the disconnected UV-boundary refusal. The remaining plane-to-cylinder shared-edge disagreement still leaves the targets without a mesh. The same-save Revit reference is pending, so the local probe can distinguish the two stored placements but can’t yet tell which one Revit follows. Which revision or probe should I test next for that case? If there’s a public fixture for the next shared-edge check, I can run it while the reference is pending.
@DrunkOnJava, I made a model-free repro for the plane/cylinder edge path from #1706. It checks the ordered boundary segments in the final triangles, after both face tessellators have run.
On main at eb268fdd, a generated unit cylinder and a plane have exactly agreeing stored samples on an oblique cut. The cylinder's refined trim and the planar mesh each have 32 segments on that edge. After cylinder strip clipping, the cylinder mesh has 44. Its added boundary vertices are up to 5.23e-5 ft off the plane, and the largest sampled gap between the two emitted paths is 1.47e-4 ft. Reversing the stored points or swapping the face slots gives the same result. The level cut agrees at 14 segments per side. Separate endpoint, interior, and off-plane cases keep their current refusals.
I also ran a face-mesh audit on the pinned BIM4LCA housing pairs at 74f5cd01. In each file, among oblique edges with agreeing stored samples and an unambiguous emitted chain on both faces, 1 matches and 7 differ. Another 7 could not be classified by this probe. The largest sampled gap on the classified edges is 1.80e-4 ft. Separately, the upstream IFC scorer reports both sets of Revit vertices for all 20 already-disputed plane/cylinder edges per file on the distinguishable samples, reproducing your earlier result. To run the scorer at this revision I renamed the no-gap branch's local counts variable, which otherwise shadows the counts() helper on the nonempty path.
Proposed contract. For a shared edge with agreeing stored samples, both faces should consume the same ordered chain in their final triangles, allowing reverse traversal. If either tessellator needs extra subdivisions, collect those knots before finalizing the shared edge and evaluate the added points on the shared analytic intersection. Keep the existing refusal for genuinely disputed source points, and verify the final chord error and face point budgets on both sides.
Would you be open to a standalone contract probe for this, followed by an opt-in change restricted to the agreeing-sample case? That would give us a public repro for the tessellation step while the separate decision about disputed samples stays with its Revit-reference check.
Standalone generated-geometry probe
Save as probes/examples/probe_plane_cylinder_shared_boundary.rs on eb268fdd. Run cargo run --locked --profile ci -p rvt-probes --example probe_plane_cylinder_shared_boundary for the case results. Adding -- --check enforces the proposed contract and currently fails the oblique cases.
//! Check emitted boundaries of a generated plane and cylinder sharing an edge.//! No model input or sampled model data. Run with --check to enforce the contract.use anyhow::{Context,Result, ensure};use rvt::research::native_parameters::ObjectGraph;use rvt::research::native_saved_mesh::{FaceMesh, face};use serde_json::{Value, json};use std::collections::BTreeMap;constPLANE:usize = 0;constCYLINDER:usize = 1;constFIRST:f64 = 0.2;constLAST:f64 = 1.3;constHEIGHT:f64 = 0.7;constBOTTOM:f64 = -0.5;constGEOMETRY_EPS:f64 = 1e-7;#[derive(Clone,Copy,PartialEq)]enumVariant{Agree,Reverse,SwapFaces,EndpointDisagreement,InteriorDisagreement,OffPlane,}fnptr(index:Option<usize>) -> Value{json!({"pointer_token": index.map_or(0, |i| i+1),"offset":0})}fnface_fields(surface:usize,ring:usize) -> Value{json!({"m_pSurf":ptr(Some(surface)),"m_pFirstLoop":ptr(Some(ring)),"m_faceRegions":[],"m_faceFlags_v9":0,"m_renderStyleId":0})}fnring_fields(owner:usize,start:usize) -> Value{json!({"m_pFace":ptr(Some(owner)),"m_next":ptr(Some(start)),"m_nextLoop":ptr(None),"m_open":false})}fnedge(owners:[Option<usize>;2],next:[Option<usize>;2],pairs:&[[[f64;2];2]]) -> Value{let uv = |pair| json!({"uv":pair});json!({"m_pFace":owners.map(ptr),"m_next":next.map(ptr),"m_firstAndLastEdgePnts":[uv(pairs[0]),uv(pairs[pairs.len()-1])],"m_interiorEdgePnts":pairs[1..pairs.len()-1].iter().copied().map(uv).collect::<Vec<_>>()})}fnside(owner:usize,next:usize,start:[f64;2],end:[f64;2]) -> Value{edge([Some(owner),None],[Some(next),None],&[[start,[0.,0.]],[end,[0.,0.]]],)}fnbuild(slope:f64,variant:Variant) -> Result<ObjectGraph>{let plane = |theta:f64| [theta.cos(), theta.sin()];let cyl = |theta:f64| [theta,HEIGHT + slope * theta.cos()];let center = (FIRST + LAST) / 2.;let plane_first = if variant == Variant::EndpointDisagreement{plane(FIRST + 0.0004)}else{plane(FIRST)};letmut common = [[plane_first,cyl(FIRST)],[plane(center),cyl(center)],[plane(LAST),cyl(LAST)],];if variant == Variant::InteriorDisagreement{// Both samples lie on the same analytic intersection, at different positions.
common[1][0] = plane(center + 0.0004);}if variant == Variant::OffPlane{// The cylinder's middle sample stays on its cylinder and leaves the plane.
common[1][1][1] += 0.0004;}if variant == Variant::Reverse{
common.reverse();}letmut owners = [Some(PLANE),Some(CYLINDER)];letmut next = [Some(7),Some(9)];if variant == Variant::SwapFaces{
owners.swap(0,1);
next.swap(0,1);for pair in&mut common {
pair.swap(0,1);}}let records = [("Face",face_fields(2,4)),("Face",face_fields(3,5)),("Plane",json!({"m_origin":[0.,0.,HEIGHT],"m_xVec":[1.,0.,slope],"m_yVec":[0.,1.,0.],"m_orientFlag":true}),),("CylSurf",json!({"m_center":[0.,0.,0.],"m_radius":1.,"m_xVec":[1.,0.,0.],"m_yVec":[0.,1.,0.],"m_zVec":[0.,0.,1.],"m_orientFlag":true,"m_Envelope":{"m_corners":[[FIRST,BOTTOM],[LAST,1.2]]}}),),("EdgeLoop",ring_fields(PLANE,6)),("EdgeLoop",ring_fields(CYLINDER,6)),("Edge",edge(owners, next,&common)),("Edge",side(PLANE,8,plane(LAST),[0.,0.])),("Edge",side(PLANE,4,[0.,0.], plane_first)),("Edge",side(CYLINDER,10,cyl(FIRST),[FIRST,BOTTOM])),("Edge",side(CYLINDER,11,[FIRST,BOTTOM],[LAST,BOTTOM])),("Edge",side(CYLINDER,5,[LAST,BOTTOM],cyl(LAST))),];let objects=records.into_iter().enumerate().map(|(i,(class,fields))|
json!({"class_tag":0,"class_name":class,"token":i+1,"start":0,"fields_end":0,"fields":fields})).collect::<Vec<_>>();Ok(serde_json::from_value(json!({"consumed_bytes":0,"objects":objects,"edges":[]}),)?)}typePoint = [f64;3];typeSegment = [Point;2];fnangle(p:Point) -> f64{
p[1].atan2(p[0])}fndistance(a:Point,b:Point) -> f64{(a[0] - b[0]).hypot(a[1] - b[1]).hypot(a[2] - b[2])}fnboundary(mesh:&FaceMesh) -> Result<Vec<Segment>>{letmut counts = BTreeMap::new();for&[i, j, k]in&mesh.triangles{for(a, b)in[(i, j),(j, k),(k, i)]{*counts.entry((a.min(b), a.max(b))).or_insert(0) += 1;}}let on_cap = |p:Point| (p[0].hypot(p[1]) - 1.).abs() < GEOMETRY_EPS && p[2] > 0.4;letmut edges = Vec::new();for((i, j), count)in counts {letmut pair = [mesh.vertices[i asusize], mesh.vertices[j asusize]];if count == 1
&& pair.into_iter().all(on_cap)
&& (angle(pair[0]) - angle(pair[1])).abs() > 1e-9{
pair.sort_by(|a, b| angle(*a).total_cmp(&angle(*b)));
edges.push(pair);}}
edges.sort_by(|a, b| angle(a[0]).total_cmp(&angle(b[0])));ensure!(!edges.is_empty(),"no cap boundary triangles");ensure!((angle(edges[0][0]) - FIRST).abs() < GEOMETRY_EPS);ensure!((angle(edges.last().unwrap()[1]) - LAST).abs() < GEOMETRY_EPS);ensure!(
edges
.windows(2).all(|p| distance(p[0][1], p[1][0]) < GEOMETRY_EPS),"cap path has a gap");Ok(edges)}fnpoint_segment(point:Point,[a, b]:Segment) -> f64{let ab:Point = std::array::from_fn(|i| b[i] - a[i]);let along = (0..3).map(|i| (point[i] - a[i])* ab[i]).sum::<f64>()
/ ab.iter().map(|v| v * v).sum::<f64>();distance(
point,
std::array::from_fn(|i| a[i] + along.clamp(0.,1.)* ab[i]),)}fnpath_gap(from:&[Segment],to:&[Segment]) -> f64{
from.iter().flat_map(|&[a, b]| {(0..=8).map(move |i| std::array::from_fn(|k| a[k] + (b[k] - a[k])*(i asf64 / 8.)))}).map(|p| {
to.iter().map(|&edge| point_segment(p, edge)).fold(f64::INFINITY, f64::min)}).fold(0., f64::max)}fnrun(label:&str,slope:f64,variant:Variant) -> Result<(bool,Value)>{let graph = build(slope, variant)?;let planar = face(&graph,PLANE);ifmatches!(
variant,Variant::EndpointDisagreement | Variant::InteriorDisagreement | Variant::OffPlane){let wanted = if variant == Variant::OffPlane{"shared curved edge leaves adjacent plane"}else{"shared edge surface samples disagree"};let error = planar.expect_err("an unsupported sample should be refused");ensure!(
error.to_string().contains(wanted),"{label} refused for {error}");returnOk((true,json!({"case":label,"expected_refusal":wanted})));}let plane = boundary(&planar?.context("empty plane")?)?;let cylinder_mesh = face(&graph,CYLINDER)?.context("empty cylinder")?;let cyl = boundary(&cylinder_mesh)?;let cylinder_trim_vertices = cylinder_mesh.trim_uv.iter().filter(|p| p[1] > 0.4).count();let max_residual = |edges:&[Segment]| {
edges
.iter().flatten().map(|&[x, _, z]| (z - HEIGHT - slope * x).abs() / (1. + slope * slope).sqrt()).fold(0., f64::max)};let same = plane.len() == cyl.len()
&& plane
.iter().zip(&cyl).all(|(a, b)| (0..2).all(|i| distance(a[i], b[i]) <= GEOMETRY_EPS));let passed = same && max_residual(&plane) <= GEOMETRY_EPS && max_residual(&cyl) <= GEOMETRY_EPS;Ok((
passed,json!({"case":label,"agreed":passed,"same_ordered_segments":same,"plane_segments":plane.len(),"cylinder_segments":cyl.len(),"cylinder_trim_segments_before_strip_clipping":cylinder_trim_vertices - 1,"plane_max_distance_to_plane_ft":max_residual(&plane),"cylinder_max_distance_to_plane_ft":max_residual(&cyl),"sampled_plane_to_cylinder_path_gap_ft":path_gap(&plane,&cyl),"sampled_cylinder_to_plane_path_gap_ft":path_gap(&cyl,&plane)}),))}fnmain() -> Result<()>{letmut passed = true;for(label, slope, variant)in[("level",0.,Variant::Agree),("oblique",0.4,Variant::Agree),("reverse_stored_order",0.4,Variant::Reverse),("swap_face_slots",0.4,Variant::SwapFaces),("endpoint_disagreement",0.4,Variant::EndpointDisagreement),("interior_disagreement",0.4,Variant::InteriorDisagreement),("off_plane",0.4,Variant::OffPlane),]{let(holds, evidence) = run(label, slope, variant).with_context(|| label.to_owned())?;
passed &= holds;println!("{evidence}");}ensure!(
passed || !std::env::args().any(|arg| arg == "--check"),"one or more emitted shared boundaries violate the contract");Ok(())}
What the replay settles. With both switches on, the coordinated join and the plane anchor recover the faces they were built for, and the controls stay byte-identical. The chairs still export 0 of 448, so those two are not enough by themselves. Your local review stack is the first run to show the chairs whole: 448 of 448, each passing the same-save IFC comparison. None of it is in a pull request here yet.
Two rows from the pass list are still open, and the join's pull request to main has to show them:
exportkeeps on your save: does it read 96 gaps, 80 on cylinders and 16 on revolved faces, all under the limit?
At every gap the join takes, does Revit keep the named end?
Please also say whether the 448 of 448 ran with both switches on, and post the join-only arm if you have it.
Griffin's call: the coordinated join will be on by default. He was shown your 448 of 448 and the 71 public models where the join takes no gap. He chose to have it on in every export, over keeping it behind RVT_2085_COORDINATED_JOIN or holding to the 0.00001 ft touching rule alone. The touching rule stays as it is for every other ring, and the limit stays at 3.75e-4 ft, fitted to one family on one save. The join moves to main in a pull request that shows the rows above.
The plane anchor's default is still open with him. The chairs need it for their 2 planes, so until he decides, they export whole only with RVT_2085_PLANE_ANCHOR set.
Review order: the Hermite perimeter regression first. By your run, the Hermite trim refusals are what leave the chairs at 0 of 448, and you have its model-free reproduction. Please open it against research/2085-ring-join, where 0bccdc09 is, as #2136 did, behind its own variable. Then:
The narrow-strip change.
The shared-boundary checks and the revolution trim grid, each in its own pull request.
One question on the narrow-strip change: are the public housing recoveries that still need an explanation its own, or the combined stack's?
Each is reviewed on its own rows. With its variable unset, the controls and the public models stay byte-identical. With it set, your counts on the save improve and nothing else is refused.
The shared-edge contract: yes.
Please open the standalone probe (probes/examples/probe_plane_cylinder_shared_boundary.rs) as its own pull request. By your run, its --check fails on the oblique cases at eb268fdd, which puts the gap on record in public.
An opt-in change limited to edges whose stored samples agree can follow it.
The disputed samples stay with their Revit-reference check.
The scorer's counts rename is welcome as a separate small fix.
The arch-corner case. Nothing more runs there until the same-save Revit reference arrives. Until then, the contract probe above and the BIM4LCA housing pairs you already audited are the public checks for that edge path.
#2157, the graph-limit proposal, gets its own review on the pull request.
@DrunkOnJava, both open rows are covered by the exact 0bccdc09 replay. I verified the stock probe at Saved detail 3 using the research branch's graph budget.
The width check passes. The probe reports 96 eligible gap views in each arm, 80 on cylinders and 16 on revolved faces. Every measured width is below 3.75e-4 ft in the join's own measure, along the surface for cylinders and in model space for revolved faces.
Revit keeps the named end. An observer reads the kept endpoint index from the export rule and evaluates both stored ends at each placement. The same-save Revit IFC has only the named end in all 17,920 cylinder observations and all 3,584 revolution observations, at 1e-5 ft and 1e-7 ft vertex tolerances respectively. The two views agree on the physical endpoint. In eight revolved views the reader's final mesh also emits a vertex at the competing end, after the joined polygon has selected the named end. The separate grid regression covers that downstream behavior.
Exact stock research revision
Complete Saved meshes
Pass both IFC directions
Revit → reader coverage
Both switches unset
0/448
0/448
67.55–67.63%
Coordinated join only
0/448
0/448
71.41–71.61%
Coordinated join and plane anchor
0/448
0/448
84.30–84.33%
The same-save gate samples 4,096 points in each direction and requires 99% within 0.01 ft in each. The join recovers 48 cylinder, 14 planar and eight revolved faces, and the anchor adds two planar faces. No previously meshed face became refused. The four control meshes are byte-identical across all stock arms and pass the same-save gate. Yes, the local 448/448 recovery ran with both public switches enabled, along with the local trim and shared-boundary repairs. All 448 passed the same bidirectional gate.
The two public housing changes are from the narrow-strip switch alone. It recovers 87 previously refused standalone faces per file and loses zero previously meshed faces. Five diagnostic reasons change per file, while exported Body geometry stays byte-identical. Of those recovered faces, 28 per file have at least 99% agreement in every placement in the candidate-to-reference face check. The result leaves a representation-selection question for the other faces. That's why the narrow-strip submission should stay opt-in.
I’ll start with the Hermite perimeter change and its generated regression against research/2085-ring-join. I’ll send the plane-cylinder contract probe as its own PR and keep the agreeing-sample fix and disputed-sample investigation separate.
The width check: 96 gap views in each arm, 80 on cylinders and 16 on revolved faces, all under 3.75e-4 ft.
The named end: Revit keeps it in all 17,920 cylinder and 3,584 revolution observations. The eight revolved views where the final mesh also emits a vertex at the competing end belong to the grid regression, as you say.
One correction to my last reply: setting RVT_2085_PLANE_ANCHOR does not make the chairs export whole. Your table shows 0 of 448 with both switches on at 0bccdc09, and the 448 of 448 also needed your local trim and shared-boundary repairs.
Those rows were measured with the research branch's graph budget. On main, the chairs' larger graph (1,789,525 values in your 20 Nov run) is over the 1,000,000-value limit, so the chairs can't be measured there until a caller can raise it; #2157 proposes that for Rust callers. So the join's pull request to main should cite this replay at 0bccdc09, with the research budget, for both rows, the three arms and the four controls. On main itself it should show that the 71 public models where the join takes no gap stay byte-identical.
The plane anchor's default is still open with Griffin, and your arms are its evidence: two more planar faces, and Revit-to-reader coverage from 71.41–71.61% to 84.30–84.33%. The Hermite perimeter change first, as you plan, and thank you for keeping the narrow-strip switch opt-in.
Activity
DrunkOnJava commentedon Nov 19, 2026
Thank you, @shifatrHtH. This is a clear report, and it sits right on the next work for family instances (#1191 for saved meshes, #1189 for families). Your point 4 first, because it frames the others.
4. What
--family-extrusionscovers todayWhy the 448 are boxes: two counts would tell us which of your points applies. Each boxed element records why its saved mesh was not used, as its
SavedMeshRefusalproperty and in thesaved_mesh_not_usedrows of--export-decisions. Could you post the counts by reason for the 448, and the--family-extrusionssummary line of that run? Counts only.no_saved_graphicsorno_saved_mesh: the file holds no display mesh for the instance, so only the family's own forms can draw it. That is your point 1.partial: …: a mesh is there and one of its faces is not decoded yet. That is your point 2, and it is W6: draw family instances from their saved meshes by default (decode the remaining saved-graphics faces) #1191.1. Symbol geometry plus instance placements. The parts exist in
rvt::research(the family's forms, the instance transforms, the saved meshes), but not as one call, and not for an instance with nothing to check it against. I am going to measure that case on the open models: for boxed instances with no saved mesh whose family's forms all rebuild, how close the rebuilt body comes to Revit's own export of the same model. If it holds, it ships as an opt-in with its ownBodySource, so a consumer can always tell it from a checked body, and the one-symbol-many-placements call comes with it, with no family names anywhere in it. I will post the numbers here either way.3. A no-geometry marker. Today the reason is on each element (
BodySourcesays the body is a record box,SavedMeshRefusalsays why), but it does not separate "this element has no 3D geometry" from "its geometry was not read". I agree that is worth a marker of its own, and I will propose its shape here once the counts above show which cases it has to cover.No fixture needed yet; the counts are enough to start.
probe(probes): the #2085 scorer takes the --list Measure passes to ev…
probe(probes): the #2085 probe lists what a family with no form of it…
probe(probes): the #2085 probe counts every class that could draw a f…
probe(probes): the #2085 probe draws a formless family's instances fr…
probe(probes): the #2085 probe says why a nested instance's saved gra…
probe(probes): the #2085 probe says why a nested instance's whole gra…
probe(probes): the #2085 probe says where a nested instance that draw…
probe(probes): the #2085 probe rebuilds a formless family from its ne…
probe(probes): the #2085 probe draws nested families revolutions too,…
probe(probes): the #2085 probe draws a nested family from its forms o…
probe(probes): the #2085 probe lists every reason a nested family is …
DrunkOnJava commentedon Nov 19, 2026
@shifatrHtH, the numbers I said I would post on point 1, either way.
I counted, on every open model we measure, the family instances an export leaves as a box because the file holds no saved mesh for them, and how many of those could be drawn from their family's own geometry instead. The probe is
probe_2085_boxed_family_instancesonresearch/2085-boxed-family-instances(1e789567), andtools/re/probe_2085_vs_ifc.pyscores what it draws against Revit's export. Counts only. Runs: 44518207279 (the 42 models with Revit's export, scored) and 44518217138 (Autodesk's samples of 2015 to 2027; the counts below are of the 2024 to 2027 saves).The samples' 501 count a project's instances once in each release it is saved in: they are 339 different instances. The 42 models' 48 family instances are the BIM4LCA housing's 44 sanitary terminals, 2 RPC trees (one on each office terrain file), 1 opening on RE1 Architecture and 1 column on the BIM4LCA office. The column is the one that could be drawn, and the scorer finds it not in Revit's export, or with no body there, so there is nothing to check it against.
Why the rest are not, and what following nested families gives. The biggest group is a family with no form of its own that nests another family: 293 of the samples' 501 (155 different instances), and the BIM4LCA housing's 44 (one family, 11 on each of four files). So I followed those nested families: the probe now finds each nested family's own document and where its instance sits in the outer family, and draws it from its extrusions and revolutions, or from the saved graphics of its own forms, with every reason listed where it cannot.
profile crosses axis or opposite half-plane) and has no sweep or imported geometry. The family's own saved graphics mesh both revolutions; the sweep's have faces the mesher cannot bound, and the two imports are placed by a scaled instance, which the graphics reader does not take. So none of the 44 can be drawn or checked against Revit's export yet. What stops them is those two: the sweep's faces and scaled instances.box_bodies_vs_ifc, run 44486295483). So Revit draws something there that none of the family's forms hold, and a record box is far from its shape.The other groups:
So on the files anyone can fetch, neither a family's own extrusions nor its nested families draw any instance of your case that can be checked.
To see whether your 448 split the same way, the probe is built for you: run 44518234434, commit
1e789567, with aSHA256SUMSand aBUILT-FROM.txtin each download:probe_2085_boxed_family_instances-g1e789567-aarch64-apple-darwin(macOS on Apple silicon; the binary is unsigned, soxattr -d com.apple.quarantine probe_2085_boxed_family_instancesonce before running it)probe_2085_boxed_family_instances-g1e789567-x86_64-pc-windows-msvcprobe_2085_boxed_family_instances-g1e789567-x86_64-unknown-linux-gnuRun it as
probe_2085_boxed_family_instances MODEL.rvt. Your model is customer-derived, so post only itsfile,tallyandnested_familylines:probe_2085_boxed_family_instances MODEL.rvt | grep -E '^(file|tally|nested_family) 'on macOS or Linux,probe_2085_boxed_family_instances.exe MODEL.rvt | findstr /R "^file ^tally ^nested_family"on Windows. Those lines are counts, classes and reasons, plus each nested family's ElementId, which you can blank out. Theinstancelines carry ElementIds, volumes and box corners, and theformlesslines family ElementIds, so keep those to yourself.shifatrHtH commentedon Nov 20, 2026
@DrunkOnJava thanks for building the probe. I ran the exact Apple Silicon artifact from run 44518234434, built from
1e789567, on the same Revit 2024 save used for the 448-instance report. I verified the download checksums and matched the input locally to the save used for the separate audit. The probe exited 0 with empty stderr.Standalone probe result
Here are the sanitized
file,nested_family, andtallyexcerpts from that run:The sole eligible element had
SavedMeshRefusal = no_saved_mesh. The probe reported a nested-family rebuild for that proxy. I checked the candidate's ElementId locally against all 448 target IDs and found zero matches. The 576 count is model-wide. The probe's candidate filter selectsno_saved_meshandno_saved_graphics.Separate 0.25.0 Saved audit
I joined the source audit to the 448 target instances by ElementId locally and read
SavedMeshRefusalafter Saved attach:partial: missing current symbol graphics ######no_saved_meshno_saved_graphicsThe suffix is masked in the diagnostic, so the count is per instance. The number of distinct unresolved symbols is still unknown. These were all box bodies in the 0.25.0 output.
I cross-checked the same 448 targets directly in a second 0.25.0 export run with the same option as
--family-extrusions. All 448 had the same refusal and still had box bodies (324 turned boxes and 124 record boxes). The run reported zero unread streams. Here is its full family-extrusions summary, wrapped for readability. It describes the model-wide Saved-mesh candidates.How should I trace the symbol lookup?
For
partial: missing current symbol graphics, is there an existing probe or a small instrumentation point you would recommend to determine whether the referenced symbol graphics are absent from the save or present but missed by the current-symbol resolver? If the diagnostic can also distinguish a matching record whose graph could not be decoded, that would help narrow it down. I can run the check locally and report aggregate counts per outcome and per distinct symbol with the identifiers removed.shifatrHtH commentedon Nov 20, 2026
@DrunkOnJava I ran a targeted resolver trace on the same Revit 2024 save as the previous probe and audit. Both referenced Saved graphics records are present and selected. The graph reader rejects them at the field-value budget before the resolver can use them.
How I checked
I used the pinned
rvt-rs0.25.0 library (e3a94048) and matched the input locally against the save used for the earlier audit. A focused run of the batched Saved reader reproducedmissing current symbol graphicson 448/448 target instances. The one-shot reader reported exactly the same two unresolved symbol references, used by 190 and 258 instances.I then walked the partition records without the handle's record index. Both references have physical records in the project's channel 103, and a separate current-record scan selected both as
GElement. It reported zero unread partitions and decoded all ten positive-control symbol graphs. Both target graphs failed in the projected Saved-graphics read and the full graph read at the same field path:That accounts for the missing-symbol message on this save. The current-record lookup succeeds, but the graph decoder supplies no graph to the resolver.
What the higher limit exposed
In a scratch probe I varied only the field-value cap and kept the graph-object cap at 1,000,000:
The larger successfully decoded graph used 1,789,525 field values. After both graphs decoded, 448/448 chair meshes were still partial and zero were complete on 0.25.0. The next refusals included
unsupported surface HermiteSurf,unsupported parametric profile curve GHermiteSpline, disconnected UV boundaries and parametric trims, and trim loops that did not close. The higher cap was a diagnostic to expose this next stage.What would you like me to test next?
HermiteSurfnode arrays within the current budget? Would it help to carry the graph-decode refusal through the symbol lookup so this case can be distinguished from an absent record?143 remaining items
DrunkOnJava commentedon Nov 22, 2026
@shifatrHtH, thank you, both for finding the pairing fault in
a04d11f8and for testing the shared-edge build so quickly (your run). Your two arms settle what the join can do on these chairs today:Your question: trace the revolved-face and plane failures first. They are what still refuses.
A public arm of the wider bound would show nothing yet. On the 71 public models and samples the probe reads, no stored pair meets the shared-edge and spline conditions at any width. The other 30 are Autodesk's samples of 2015 to 2022, which its native reader refuses (Measure 45002253953). The orientation rule alone finds pairs on the office as built, the four housing files and
rac_basic's 2023 to 2027 saves, and Revit's export judges none of them. So a public arm could only show that nothing moves. That run is for when a bound goes to Griffin, made with the join on through a flag Measure can set, since it cannot set the variable.Two things before any bound over 0.0001 ft.
coordinated joinline, already at23d72e02, says whether a corner is the export's join or meets the orientation rule only. If it is the export's join and under 0.0004 ft, your scratch arm joined a gap Revit leaves open, and the conditions have to be narrowed before that bound means anything.For Griffin, when it is ready. His bound for ring ends is 0.00001 ft, and loosening it is his call, on a measured rule led by how many distinct gaps and families it holds on. Today that is 40 stored pairs, one family, one save. The export draws a saved mesh only where all of it decodes (RE-224), so until the revolved faces and the two planes read too, the join changes no export on these chairs. That is why it does not go to him yet.
7ff403b6is your23d72e02with two additions:pairringsline: how many rings the join touches and how many it closes;With the join off, all 101 exports and all 101 diagnostics are byte for byte as before. Clippy and the join's four tests pass on #2141, a draft opened only to run CI on this code.
shifatrHtH commentedon Nov 22, 2026
@DrunkOnJava, the exact
23d72e02scorer passes row 0 and gives the needed separation. The both-end case is orientation-only, one stored pair and six corner occurrences, at about1.10e-4ft. It fails the reciprocal shared-edge and spline topology test, so the4e-4ft scratch arm leaves it out even though it is within that numeric bound.All 40 topology-qualified chair pairs have the last/first ring's Q in Revit, split as the scorer reports: eight pairs / 1,792 corners below
1e-4ft, and 32 pairs / 7,168 corners at or above it. The largest paired gap in the probe is3.728e-4ft. That is the probe's model-space endpoint separation. The join itself measures distance along the surface, so I would keep those two measurements explicit if proposing a bound.I am tracing the two adjacent-plane refusals and the remaining revolved trim gaps against the same-save IFC, with separate placement controls for the two checks.
shifatrHtH commentedon Nov 22, 2026
@DrunkOnJava, I traced both remaining refusal types on the wider scratch build, with separate raw IFC placement controls for each. The diagnostic adds rows only.
Revolved trim. The eight refused
SurfRevfaces contain two stored gaps each at or above the parametric1e-5ft cap: 16 gap views, eight stored corner pairs, with the largest gap about8.39e-5ft. Each pair shares exactly one reciprocal edge between its two revolved faces, at the same stored edge end. The other edge in each view leads to a separateHermiteSurfface. Each pair has onelast/firstview and one same-end view. The cylinder orientation rule proposes the same point to within1e-7ft in both views on every pair.The standard scorer reads eight distinct gaps and finds one Revit endpoint on all eight. The other eight are below its two-tolerance resolution floor. In a separate raw-vertex sensitivity check, all 3,584 closed-end controls are within both
1e-6and1e-7ft. At both tighter bounds, all 16 gaps resolve, all 3,584 gap occurrences select the orientation rule's point, and both views agree at all 1,792 corners. The standard raw and unwelded read agrees wherever it can distinguish the ends.Remaining planes. The two plane faces refuse at four distinct shared edges, each bordering a revolved face. The original six samples on each edge have one endpoint that leaves the adjacent plane. Across 448 placements that makes 896 offending endpoint observations. Revit's raw IFC has the plane-side saved sample on all 896 and the curved-side sample on none, at
1e-5ft. Their two placements differ by about3.88e-4ft. The 1,792 retained closed-end controls give a near-zero floor. No offset is applied.The revolved gaps now have evidence for the same reciprocal-edge / spline pairing and endpoint choice at the existing coordinated test bound. The plane result supports testing a shared anchor at the original planar sample, with the curved face using that same point so the seam can be checked. Those are two separate candidates. I can retest the exact implementation and compare complete meshes, the same-save score, and the controls.
research(saved-graphics): the coordinated join takes revolved faces' …
research(saved-graphics): the revolved faces' coordinated join keeps …
research(saved-graphics): the coordinated join's keeps name the BTree…
research(saved-graphics): the parametric join's test passes no keeps (#…
DrunkOnJava commentedon Nov 22, 2026
@shifatrHtH, thank you for both traces (the scorer split, the two refusals). The both-ends case failing the topology test is the answer that mattered: the conditions keep it out, so the width limit no longer carries the rule.
Both candidates are built, at
0bccdc09, each behind its own variable.RVT_2085_COORDINATED_JOIN).native_saved_mesh::coordinated_join_keeps, which the export calls for cylinders and for revolved faces alike. It allows two cylinders or two revolved faces, never a mixed pair. Their rings must share one stored edge at the same stored end, and each other edge must lead to a spline face. One ring readslast/first, the otherfirst/firstorlast/last.exportkeeplines print each gap's width in the join's own measure, so the two can be told apart.RVT_2085_PLANE_ANCHOR).Where the export reaches, by its own function (Measure 45063258002, at
baf5ccc5):exportkeepsreads 0 gaps on all 71 public models and samples the probe reads. The other 30 are Autodesk's samples of 2015 to 2022, which its native reader refuses.exportkeepslines.What has run and what has not. Clippy and the library tests pass on this code (#2144, a draft opened only for CI). The join's four tests are of the cylinder ring only. The revolved loop's keep and the plane anchor have run on no file and have no test, so your run is the first time either executes.
What passes, set before your run. With the coordinated join on and the anchor off, then with both on:
exportkeepson your save. By your counts it should read 96 gaps, 80 on cylinders and 16 on revolved faces, the widest under the limit. That is the check that the export's function and the probe'sexactagree.exportkeeplists the gaps the pairing approves; a ring's own guards (the far end, a short edge) can still refuse one.For Griffin. His bound for ring ends is 0.00001 ft. Revit's choice is measured on 48 stored pairs and 4 plane edges, all on one family on one save. It comes to him once a run like yours shows the chairs exported whole.
research(saved-graphics): the gap scorer passes a model with no gap o…
ci(measure): a scorer the run names that exits non-zero on the head s…
shifatrHtH commentedon Nov 23, 2026
@DrunkOnJava, I ran the requested replay at exact
0bccdc09. The coordinated join and plane anchor recover the expected faces, and the controls stay byte-identical. With both switches enabled, the remaining Hermite trim refusals leave 0/448 complete chair meshes and 0/448 passing the bidirectional Revit surface check.With a local opt-in review stack on the same revision, the ordinary whole-document export path admits 448/448 complete chair meshes. All 448/448 pass the same-save Revit IFC comparison, with at least 99% of 4,096 surface samples within 0.01 ft in each direction. The control meshes are byte-identical. This uses the research branch’s stock graph budget. The graph-limit API proposal is separate and preserves main’s default.
I have generated, model-free reproductions for the narrow parametric strip and Hermite perimeter failures, along with separate patches for the shared-boundary checks and the revolution trim grid. The narrow-strip repair stays opt-in in the combined trial. Public housing checks recovered some matching faces while other standalone face recoveries still need an explanation. Which patch would you like to review first? I can start with the isolated narrow-strip change against main, or send the Hermite perimeter regression first if that would be more useful.
For the separate curved arch-corner case, #2120 clears the disconnected UV-boundary refusal. The remaining plane-to-cylinder shared-edge disagreement still leaves the targets without a mesh. The same-save Revit reference is pending, so the local probe can distinguish the two stored placements but can’t yet tell which one Revit follows. Which revision or probe should I test next for that case? If there’s a public fixture for the next shared-edge check, I can run it while the reference is pending.
shifatrHtH commentedon Nov 23, 2026
@DrunkOnJava, I made a model-free repro for the plane/cylinder edge path from #1706. It checks the ordered boundary segments in the final triangles, after both face tessellators have run.
On main at
eb268fdd, a generated unit cylinder and a plane have exactly agreeing stored samples on an oblique cut. The cylinder's refined trim and the planar mesh each have 32 segments on that edge. After cylinder strip clipping, the cylinder mesh has 44. Its added boundary vertices are up to 5.23e-5 ft off the plane, and the largest sampled gap between the two emitted paths is 1.47e-4 ft. Reversing the stored points or swapping the face slots gives the same result. The level cut agrees at 14 segments per side. Separate endpoint, interior, and off-plane cases keep their current refusals.I also ran a face-mesh audit on the pinned BIM4LCA housing pairs at
74f5cd01. In each file, among oblique edges with agreeing stored samples and an unambiguous emitted chain on both faces, 1 matches and 7 differ. Another 7 could not be classified by this probe. The largest sampled gap on the classified edges is 1.80e-4 ft. Separately, the upstream IFC scorer reports both sets of Revit vertices for all 20 already-disputed plane/cylinder edges per file on the distinguishable samples, reproducing your earlier result. To run the scorer at this revision I renamed the no-gap branch's localcountsvariable, which otherwise shadows thecounts()helper on the nonempty path.Proposed contract. For a shared edge with agreeing stored samples, both faces should consume the same ordered chain in their final triangles, allowing reverse traversal. If either tessellator needs extra subdivisions, collect those knots before finalizing the shared edge and evaluate the added points on the shared analytic intersection. Keep the existing refusal for genuinely disputed source points, and verify the final chord error and face point budgets on both sides.
Would you be open to a standalone contract probe for this, followed by an opt-in change restricted to the agreeing-sample case? That would give us a public repro for the tessellation step while the separate decision about disputed samples stays with its Revit-reference check.
Standalone generated-geometry probe
Save as
probes/examples/probe_plane_cylinder_shared_boundary.rsoneb268fdd. Runcargo run --locked --profile ci -p rvt-probes --example probe_plane_cylinder_shared_boundaryfor the case results. Adding-- --checkenforces the proposed contract and currently fails the oblique cases.DrunkOnJava commentedon Nov 26, 2026
@shifatrHtH, thank you for the replay at
0bccdc09(your run) and for the model-free repro (plane and cylinder).What the replay settles. With both switches on, the coordinated join and the plane anchor recover the faces they were built for, and the controls stay byte-identical. The chairs still export 0 of 448, so those two are not enough by themselves. Your local review stack is the first run to show the chairs whole: 448 of 448, each passing the same-save IFC comparison. None of it is in a pull request here yet.
Two rows from the pass list are still open, and the join's pull request to
mainhas to show them:exportkeepson your save: does it read 96 gaps, 80 on cylinders and 16 on revolved faces, all under the limit?Please also say whether the 448 of 448 ran with both switches on, and post the join-only arm if you have it.
Griffin's call: the coordinated join will be on by default. He was shown your 448 of 448 and the 71 public models where the join takes no gap. He chose to have it on in every export, over keeping it behind
RVT_2085_COORDINATED_JOINor holding to the 0.00001 ft touching rule alone. The touching rule stays as it is for every other ring, and the limit stays at 3.75e-4 ft, fitted to one family on one save. The join moves tomainin a pull request that shows the rows above.The plane anchor's default is still open with him. The chairs need it for their 2 planes, so until he decides, they export whole only with
RVT_2085_PLANE_ANCHORset.Review order: the Hermite perimeter regression first. By your run, the Hermite trim refusals are what leave the chairs at 0 of 448, and you have its model-free reproduction. Please open it against
research/2085-ring-join, where0bccdc09is, as #2136 did, behind its own variable. Then:One question on the narrow-strip change: are the public housing recoveries that still need an explanation its own, or the combined stack's?
Each is reviewed on its own rows. With its variable unset, the controls and the public models stay byte-identical. With it set, your counts on the save improve and nothing else is refused.
The shared-edge contract: yes.
probes/examples/probe_plane_cylinder_shared_boundary.rs) as its own pull request. By your run, its--checkfails on the oblique cases ateb268fdd, which puts the gap on record in public.countsrename is welcome as a separate small fix.The arch-corner case. Nothing more runs there until the same-save Revit reference arrives. Until then, the contract probe above and the BIM4LCA housing pairs you already audited are the public checks for that edge path.
#2157, the graph-limit proposal, gets its own review on the pull request.
shifatrHtH commentedon Nov 26, 2026
@DrunkOnJava, both open rows are covered by the exact
0bccdc09replay. I verified the stock probe at Saved detail 3 using the research branch's graph budget.3.75e-4 ftin the join's own measure, along the surface for cylinders and in model space for revolved faces.1e-5 ftand1e-7 ftvertex tolerances respectively. The two views agree on the physical endpoint. In eight revolved views the reader's final mesh also emits a vertex at the competing end, after the joined polygon has selected the named end. The separate grid regression covers that downstream behavior.The same-save gate samples 4,096 points in each direction and requires 99% within 0.01 ft in each. The join recovers 48 cylinder, 14 planar and eight revolved faces, and the anchor adds two planar faces. No previously meshed face became refused. The four control meshes are byte-identical across all stock arms and pass the same-save gate. Yes, the local 448/448 recovery ran with both public switches enabled, along with the local trim and shared-boundary repairs. All 448 passed the same bidirectional gate.
The two public housing changes are from the narrow-strip switch alone. It recovers 87 previously refused standalone faces per file and loses zero previously meshed faces. Five diagnostic reasons change per file, while exported Body geometry stays byte-identical. Of those recovered faces, 28 per file have at least 99% agreement in every placement in the candidate-to-reference face check. The result leaves a representation-selection question for the other faces. That's why the narrow-strip submission should stay opt-in.
I’ll start with the Hermite perimeter change and its generated regression against
research/2085-ring-join. I’ll send the plane-cylinder contract probe as its own PR and keep the agreeing-sample fix and disputed-sample investigation separate.DrunkOnJava commentedon Nov 26, 2026
@shifatrHtH, thank you: both rows are answered.
3.75e-4 ft.One correction to my last reply: setting
RVT_2085_PLANE_ANCHORdoes not make the chairs export whole. Your table shows 0 of 448 with both switches on at0bccdc09, and the 448 of 448 also needed your local trim and shared-boundary repairs.Those rows were measured with the research branch's graph budget. On
main, the chairs' larger graph (1,789,525 values in your 20 Nov run) is over the 1,000,000-value limit, so the chairs can't be measured there until a caller can raise it; #2157 proposes that for Rust callers. So the join's pull request tomainshould cite this replay at0bccdc09, with the research budget, for both rows, the three arms and the four controls. Onmainitself it should show that the 71 public models where the join takes no gap stay byte-identical.The plane anchor's default is still open with Griffin, and your arms are its evidence: two more planar faces, and Revit-to-reader coverage from 71.41–71.61% to 84.30–84.33%. The Hermite perimeter change first, as you plan, and thank you for keeping the narrow-strip switch opt-in.