Repository navigation
fix(saved-graphics): read collapsed ruled profiles from saved points - #1797
Conversation
A zero ruled-profile pointer selects its separately saved point. Admit measured point/arc patches with a unit envelope and rectangular trim; keep other combinations refused. RE-443 pins the public MEP source, 107 native IFC bodies, byte witnesses and a replay without Revit.
Keep the README summary qualitative until this reference is listed in the central model index. The report retains the measured errors, accuracy limits and pinned reproduction inputs.
|
Thank you for this: the byte probe, the 608 refusal controls and the pinned inputs make it reviewable. I am measuring it the way every output change here is measured, and I register what I will read before the run starts. One unfiltered Measure of this head (
If 1 to 3 hold I read the diff once more against the run and approve; if one misses, I say which export or body and why. |
|
The Measure read against the rows I registered: the 107 bodies and the refusals hold, and two exports I called byte-identical are not, for a reason that is the change's own and I should have registered. Run 43133538738 (your head
The code reads right to me: every combination outside the measured one (point and arc, unit envelope, rectangular trim) is refused, and
None of these changes |
|
A second thing I found while counting the file's growth, which I think is worth a look before this lands: the 107 new face sets are denser than they need to be. The 107 bodies hold 1,633,146 triangles on the 2024
I have not run either; it is from reading your branch. If it holds, a face with a |
|
A heads-up while this waits on your answers above: #1800 landed on
If you would rather not do that merge yourself, say so and I will push it with the fix to your branch (maintainer edits are on) once the points above are settled. Nothing in the change itself needs a new decision from you. |
…rids Merge current main and adapt the probes to Fv fields. Keep the reviewed arc sampling while removing redundant cells along straight generators. Record mesh costs and local reference limits. Remove the reference URL because redistribution terms are not established, and drop the narrow README finding.
|
Thank you for the three changes: the reference URL is gone and the terms are recorded as not established, the README paragraph is not in the branch, and the one cell along the point-to-arc generators is the density change I suggested. That is a change to One unfiltered run of this head (
|
Thanks! Those criteria match the intended scope, and '09b18bd3' is the correct base. I’ll leave '5a0f8d1f' unchanged while the run completes. Agreed on keeping the native-reference figures attributed to RE-443; they are not a Measure verdict. The new-vertex check against the old surface is a useful independent check of the subdivision change. One small numerical clarification: my local export of '09b18bd3' gives 103,550,587 bytes for basic MEP 2024, hence the changelog’s rounded 103.6 MB baseline. The revised output is 107,547,770 bytes. Thanks for running the full comparison! |
There was a problem hiding this comment.
One change before this lands: the two sanitary terminals keep their boxes.
The Measure of 5a0f8d1f holds on all six rows I registered (the read is below), and I approved it on that read. Then I re-read the result against the bar the project holds every body to: within 0.001 ft of Revit's own export. RE-443's table gives this:
- At Revit's default tessellation, no body passes, because Revit's own facets lie further than 0.001 ft from the surface.
- At Revit's fine tessellation, the 105 duct fittings are within 0.131 mm.
- The two sanitary terminals stay at 0.721 mm at both tessellations. The miss is at a plane/cylinder junction in their bodies, not in your patches.
A body that misses the bar where it can be measured is not written: it keeps its box and says why. So I'm replacing my approval with this request:
- Admit collapsed ruled patches where the measurement covers them, which is duct fittings. A sanitary terminal, or any other category, that holds one keeps its box and a refusal note that names the reason (for example "collapsed ruled profile outside the measured duct fittings"). Decide it from the element record's
BuiltInCategory, not from element ids, so that a duct fitting in another project is read the same way. - Update the counts. It becomes 105 on each MEP save; HVAC's 32 duct fittings are unchanged. Change it in the changelog fragment, RE-443,
docs/status.mdanddocs/support-matrix.json. The triangle and size figures move a little with it. - Move the two terminals out of the targets. In
research/collapsed-ruled.jsonand the replay they become refusal controls, or the replay reports them as refused.
This changes src/, so the new head takes one more Measure, and I'll register its rows when you push. If you'd rather I make the change, say so and I'll push it to your branch (maintainer edits are on) for you to check.
The read of 5a0f8d1f
Run 43264778976: this head against the release commit 09b18bd3, unfiltered, every scorer, the held-out pairs, IFC kept. Plus a filtered run, 43273062356, for the seven Revit 2015 to 2020 models the first one left out.
-
Only the same exports move. 19 of 127 move:
- the five
rme_basicsaves; - the four
rme_advancedsaves; - Snowdon Towers HVAC;
- the four BIM4LCA office files and the five
rac_basicsaves, by note text alone.
The other 108 are byte for byte the base's. They include the 2015 to 2020 models and the held-out pairs.
- the five
-
The bodies are the same 107 and 32. Element by element on the six exports kept:
BodySourcechanges on exactly those elements: 105 duct fittings and 2 sanitary terminals on each MEP save, and 32 duct fittings on HVAC.- The mesh of every other element drawn from a saved mesh is identical.
-
The triangles fall as the fragment says. The 107 hold 66,098 triangles (618 each, 859 at most) where they held 1,633,146. The 2024
rme_basicIFC is 107,547,779 bytes against 103,550,596 at the base. HVAC's 32 hold 5,856, and its IFC goes from 65.5 to 65.9 MB. Your 103,550,587 and 107,547,770 differ from these by the same 9 bytes on both sides, so the difference is in the header. -
Refusals and notes are as before. Only the ones counted at
3d3caf78change, and no new reason appears. -
The one cell along the generators loses nothing measurable. Every vertex of the new bodies lies on the old grid's surface, to within 0.0001 mm. Every vertex of the old grid lies within 0.0015 mm of the new surface, against the 0.3048 mm chord bound.
-
same-project gatespass. The semantic check cannot score a commit from a fork, so it reads NOT MEASURED by design.
Three small things, none of them blocking, which you can fold in with the change or leave for later:
native_parametric_surface.rs:311: a ruled profile whose field is absent fails insidepointer()with "missing pointer token". A.with_context(|| format!("ruled profile {name}"))would keep the note pointing at the profile.native_parametric_mesh.rs:304and:306accept the point profile only atvexactly 0 or 1. The spatial collapse check just below already decides it, so a pole saved atv = 1e-9is refused. That fails closed, but it is narrower than the geometry.- "unqualified collapsed ruled trim" is written out in three places:
native_parametric_mesh.rs:504,probe_collapsed_ruled.rsandreplay_collapsed_ruled.py. Use one constant, or add a note that they must match.
Gate admission on the source BuiltInCategory and keep the two sanitary terminals as explicit box/refusal controls. Preserve the 105 measured fittings and add real-file IFC-class override controls. Update RE-443, the manifest, status and costs to the narrower scope.
|
UPDATE2: Merge conflict resolved. Run Measure against: Thanks for catching that! Admission now uses the source element record’s BuiltInCategory. Only duct fittings qualify; unknown or conflicting categories fail closed. Terminals 543319 and 593903 retain their boxes with collapsed ruled profile outside the measured duct fittings, and are now refusal controls in the manifest and replay. Local results: On both basic MEP 2023/2024 saves, exactly those two terminals revert. All 105 fitting representations and placements remain identical to 5a0f8d1. The 105 fittings contain 64,380 triangles: 613.143 average, 636 maximum. The 2024 IFC is 107,465,590 bytes with deterministic headers. HVAC retains its 32 recovered fittings and 5,856 triangles; its IFC is byte-identical to the previous head. All 608 graph refusal controls pass. Additional controls deliberately override the IFC classes: all 105 fittings remain admitted as proxies, while both terminals remain refused as duct fittings. The 12-project regression passes, and all six REV/ARC fixture outputs remain byte-identical to the base. Required local workspace checks pass. RE-443, the changelog, status, support notes and manifest reflect these results. The native-reference limitation remains explicit: default tessellation gives 0/105 within 0.001 ft; fine gives 105/105, maximum 0.131137 mm. These remain local RE-443 figures against the not-shared reference. The new head is ready for your registered Measure rerun. |
Retain both independent report addenda and preserve the duct-fitting admission restriction. Recheck the native replay, existing fixtures and local workspace gates against upstream 97397b9.
|
Thank you. I've read
The merge's parents are One unfiltered run of
|
|
The registered read of There are two runs:
Full CI is green on this head, and every commit is signed. Thank you for the work and for the controls that made it checkable. |
Summary
Read a zero
RuledSurfprofile pointer as its separately saved point, bounded to point/arc patches with a unit envelope and rectangular trim. Bodies containing these patches are admitted only when their source element record hasOST_DUCT_FITTING.On the public Revit 2023 basic MEP sample this recovers 105 duct fittings. The two sanitary terminals keep their record boxes and an explicit refusal. Output remains
IfcTriangulatedFaceSet.Motivation
One shared pointer rule recovers measured bodies without element-specific decoders. RE-443 records the public file, streams, record hashes, offsets, bytes and values. The body category restriction follows the review of
5a0f8d1f: the terminals miss the strict native-reference threshold even with fine tessellation.Changes
97397b9e, preserving its project-unit and type-layer changes and both independent reconnaissance addenda. The comparisons below were rerun against that refreshed base.m_Point1/m_Point2only for a zero profile pointer, including the limiting pole normal and collapsed rectangular trim side. Both-null profiles, missing/invalid points, unresolved nonzero pointers, other curve combinations, non-unit envelopes and other trims remain refused.BuiltInCategoryfrom the cached production walk, independently of IFC class or fixture ids. Unknown/conflicting categories fail closed. Other complete bodies containing these patches retain their boxes withcollapsed ruled profile outside the measured duct fittings; already-partial bodies retain their existing decoder refusal.Screenshots or output samples
Local exports against base
97397b9e, with deterministic headers:The MEP fittings average 613.143 triangles, maximum 636. HVAC averages 183, maximum 212. Compared with
5a0f8d1f, exactly the two terminals return to boxes on each locally checked MEP save; all 105 fitting representations and all placements are unchanged. HVAC, architectural basic 2024 and the BIM4LCA concrete office IFCs are byte-identical to that head.Local native-reference figures from RE-443:
Default: 0/105 pass the strict 0.001 ft threshold; fine: 105/105 pass. Fine does not replace the default verdict. The two terminals previously missed at 0.720662 mm with both settings and are now refused, not accepted under a looser bound.
Reproduction and evidence availability
research/collapsed-ruled.jsonpins the public Autodesk RVT, seven source records, 105 positive targets, two refusal controls and reference hashes/bounds. The RVT is also pinned inresearch/autodesk-sample-projects.tsvfor Measure.The public source suffices for the byte and category controls:
Native scoring additionally requires the local not-shared archive. Its redistribution terms are not established; there is no reference download URL. Its unchanged SHA-256 is
77322bed93a88f027f473cd71578fa27aaeabf9402eaab99a445a1a138d6f93a(52,288 bytes).The archive still contains the original 107 references, but only the 105 fittings are positive geometry targets. Both terminals must retain boxes with the exact refusal. Native comparison cannot be reproduced from public downloads alone. Source/archive/member hashes are checked; a failed replay cannot leave an old success result. No Revit automation is included.
Testing
97397b9e, the 12-project comparison changes only the intended 105 MEP representations. Eight other project IFCs are byte-identical; three change only the established 6, 9 and 15 refusal notes.97397b9eacross the 12 projects, six families and three additional focused projects (21 distinct inputs). All five focused IFC exports are byte-identical to070a1436, and the full native replay reproduces its results exactly. Documentation and measurement-claim checks pass.These are local results. The maintainer's unfiltered Measure and supplemental run passed the registered criteria on the previous head
5a0f8d1f, before this category restriction. A fresh unfiltered Measure is required for this merged head, against97397b9e. Measure has no native IFC oracle for these samples; the accuracy figures above remain local RE-443 measurements.Audit honesty and contribution hygiene
No workflow, dependency, build-script or README change. No model or native geometry archive is redistributed by this revision. The contribution uses public RVT bytes, Revit's own IFC export and existing rvt-rs readers/scorers; it includes no proprietary orchestration, SDK source, decompiled internals or copied revit-ifc implementation. Code is licensable under Apache-2.0.
Breaking changes
None to the stable API.
Related issues
RE-443, RE-430, #1737 and #1800.