Repository navigation
perf(research): a revolved face's steps around its axis take the reach of the profile over the face's own v range, not the centre plus twice the radius, and the triangles of 40 of 126 exports fall (#1737) (RE-435) - #1744
Merged
Conversation
…h of the profile over the face's own v range, not the centre plus twice the radius (#1737) face_grid cut a revolved face with an arc or an ellipse for its profile into steps around the axis from angular(c + 2 R): c the distance of the arc's centre from the axis, R its radius (an ellipse's longer axis). No point of the profile is farther than c + R, and the face holds only the part of the profile its v range covers, so the bound was twice as generous as the chord needs and finer by up to the square root of 2 or more in u on every such face: the office toilet's biggest face has 95 columns over half a turn, cut for a reach near 7 ft by a 3.2 ft radius. profile_reach takes the farthest of 64 equal steps of the face's v range, and half a step's travel (the profile's speed, R or the longer axis) added, so the true maximum is never short and the chord of a step around the axis stays within the 0.001 ft the grid keeps. Three failure-first tests: a maximum between two steps, a part of the profile on the near side, a range of one parameter and a reversed one. The rows of the change are on #1737.
…istered rows, and where a toilet's triangles go (#1737) (RE-435) The report states where the office toilet's 17,494 triangles go (the diagnostics of runs 43055380122, 43056577200 and 43057867596), the rule (profile_reach: the farthest of 64 steps of the face's v range, half a step's travel added, in place of the centre plus twice the radius) and what it does on the unfiltered run of e3dba3f against main aa5dc4c: 40 of 126 exports move, 7,231 of the 126,381 objects drawn on both sides change their meshes, no element drawn before stops being drawn, the triangles fall by 1% to 20% (the office 9.7%, a toilet 17,494 to 14,025, Snowdon Towers Architectural 8.5%) and the IFCs by 0.9% to 12.7%. Rows 1, 2 and 4 hold; row 3 misses by one body (an RE1 Architecture shower head, Revit's vertices 0.00073 to 0.00103 ft from the mesh) and row 5 on the letter (the noise of the measure on peak memory is 4%, Core Interior, byte for byte main's, reads 1.04). The measured head is archived under refs/archive/2026-11-11/cited/e3dba3fd7833 and the diagnostic build under refs/archive/2026-11-11/scratch/1737-density. Also the changelog fragment and the format-reconnaissance addendum.
DrunkOnJava
marked this pull request as ready for review
November 11, 2026 17:53
…omment (#1737) (RE-435) The new function sat between face_grid's doc comment and face_grid, so rustdoc attached the whole block to profile_reach and left face_grid with none. The code is byte for byte as measured: with the comment lines stripped the file is identical to the measured head's.
…bound # Conflicts: # docs/format-reconnaissance.md
DrunkOnJava
added a commit
that referenced
this pull request
Nov 11, 2026
… steps and at the v of the trim's own steps and cusps, and the triangles of 25 of 126 exports fall (#1737) (RE-437) (#1769) ## Summary A face cut by its trim is cut across at the chord's `v` steps and at the `v` of the trim's own steps and cusps, where `trimmed_cells` cut each strip's trapezoids at every knot of `v` and `face_grid` made every trim point's `v` a knot, so that a trim of T points left every trapezoid that held a point's `v` cut once more across the whole face. The strips keep a knot at every trim point's `u` (a trim segment must cross a strip whole, so each corner of the trim is still a corner of the cells). The cuts across them are now the chord's steps and the `v` of each vertex the trim does not run through from one strip to the next (`trim_steps`: the ends of a step along a strip boundary and the tip of a hole), because without those a strip's cells run straight past a vertex of the next strip's and leave a crack inside the face. A face meshed on its grid keeps every trim point as a knot on both axes, and a plane face that shares an edge with a cut face follows the same `v` knots (`refined_plane_edge`). No element stops being drawn from its saved mesh (BodySource changes 0). What moves (Measure, 126 exports against `main`: 101 identical, 25 differ, the same 25 as the first version of this change): the triangles from saved graphics fall by 7.5% on the BIM4LCA office (all 107,887 of them in its 43 toilets, a toilet from 14,025 to 11,516), 6.8% on Snowdon Towers Architectural, 4.6% on the four large housing exports, 3.3% on the two terrain ones and 10.4% on `rac_advanced`; the IFCs by 0.4% to 6.6% (the office 117.1 to 113.6 MB, Snowdon Towers Architectural 272.1 to 257.6 MB). The cracks are identical per class to `main`'s on the office as built (160 in 57 face sets), the timber office (168 in 57), the housing and RE1, none in a toilet, and fewer on `rac_advanced` (394 to 374). One measured negative: RE1 Architecture's shower head has its farthest vertex from Revit's surface move from 0.009123 to 0.01007 ft, over the 0.01 ft column of its class. ## Motivation #1737, the second lever of the density RE-430 measured (after RE-435): a toilet's two trimmed faces were 4,147 of its 14,025 triangles. A first version cut at the chord's steps alone and took 8.1% off the office, and rvtDevelop's read counted what its rows had not: the vertices of a face's cells inside a boundary edge of the same face's cells went from 160 to 504 on the office as built, the 344 more all in the 43 toilets. This version keeps the cuts that stop them and the diagnostic is in RE-437. ## Changes - `face_grid` (`src/research/native_parametric_mesh.rs`): the trim points' coordinates join the knots of `u`; for a face not meshed on its grid the knots of `v` take the `v` of the trim's steps and cusps (`trim_steps`) and no longer every trim point's; `trimmed_cells` no longer asks a trim point's `v` to be a knot (a point off the `u` knots is refused as before). Four failure-first tests of the pure helpers: a trim point between the `v` knots is a corner and not a cut, a point on a vertical side between them is covered all the same, the vertices a strip beside passes by are the steps and the cusps (an L, a diamond, a square with a diamond hole), and a step of the trim is a vertex of the strips on both sides when its `v` is a knot while chord steps alone leave a free edge off the trim. - `tools/re/mesh_tjunctions.py` (new): the crack count, per class of the owning product, over a kept export. - `reports/element-framing/RE-437-trimmed-face-cuts.md`, the reconnaissance addendum, `changelog.d/changed/1737-trimmed-face-cuts.md`, and the sentence of `changelog.d/changed/1706-trimmed-faces.md` that said every trim point was a knot. ## Testing The measured commit is `70bef87acfbe` (`ee2d9dfe`, the steps rule, merged over `main` `a0c1c61a`), archived as `refs/archive/2026-11-11/cited/70bef87acfbe`; the commits after it change the report, the fragments, the addendum and this description, and no source. - [x] Unfiltered Measure with `keep_ifc` ([43091480051](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43091480051), against `main` `a0c1c61a`; GitHub's artifact outage of 2026-11-11 failed the uploads of 8 shards, which `gh run rerun --failed` re-ran as attempt 2) and `timing` ([43091485302](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43091485302)). Rows registered on #1737 before the run ([comment 6805810741](#1737 (comment))) all hold: rows 1, 2, 4, 5 and 6 outright; row 3 on its registered columns (against Revit's export no class's median volume moves, and the counts within 1% of its volume and with every vertex of Revit's within 0.001 ft fall on no class), with the shower head's 0.01 ft column as a measured negative (RE-437 section 4); row 6: export time 0.97 to 1.02 and peak memory 0.98 to 1.05 of `main`'s (1.05 asked), the office 1.00 in both. - [x] The first version, Measure [43078686248](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43078686248) (code `aafa5b1a`, kept under `refs/archive/2026-11-11/cited/aafa5b1a2f15`), held its five rows and left 344 cracks in the toilets: kept as the negative result in RE-437 section 2. - [ ] `same-project gates` and the semantic check on the measured commit; `full / CI passed` on the final head ## Audit-honesty checklist - [x] A user-visible change has its entry as a fragment under `changelog.d/changed/`. - [x] A reverse-engineering finding has its report: `reports/element-framing/RE-437-trimmed-face-cuts.md` (status, artefact hashes by run, measured counts, reproduce commands naming a commit). - [x] No emojis, no private paths in committed files. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk proprietary source, internals or NDA material. - [x] No new test fixtures. ## Breaking changes None. ## Related issues Refs #1737 (the chord, the third lever, stays open). Follows #1715, #1744, #1709.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A revolved face with an arc or an ellipse for a profile was cut into steps around its axis from
angular(c + 2 R)(cthe distance of the arc's centre from the axis,Rits radius), though no point of the profile is farther thanc + Rand the face holds only the part of the profile its ownvrange covers.profile_reachtakes the farthest of 64 equal steps of that range, plus half a step's travel so the maximum is never short; the chord of a step stays within the 0.001 ft the grid keeps at every radius of the face. No element stops being drawn from its saved mesh (BodySource changes 0); the meshes of elements with such a profile change.What moves (Measure, 126 exports against
main: 86 identical, 40 differ): 7,231 of 126,381 objects drawn on both sides change their mesh (4,167IfcPipeFitting, 1,065IfcLightFixture, 929IfcDuctFitting, 464IfcSanitaryTerminal, 184IfcRailing, 133IfcFurniture, 133IfcBuildingElementProxy, 115IfcCableCarrierFitting, 36IfcCovering, 5IfcElectricAppliance). Triangles from saved graphics fall: the office 1,586,184 to 1,432,889 (a toilet 17,494 to 14,025), Snowdon Architectural 6,228,638 to 5,696,311, Electrical 14.1%, the large housing exports 6.4%; the IFCs by 0.9% to 12.7% (Snowdon Architectural 269.5 to 251.3 MB).body_sourcesandsaved_mesh_refusalsdo not move.Motivation
#1737, the first lever of the density RE-430 measured (a toilet is 17,494 triangles where Revit's has 1,668). The diagnostic of where they go is in RE-435.
Changes
profile_reachand its use for an arc and an ellipse inface_grid(src/research/native_parametric_mesh.rs); three failure-first tests of the pure helper.reports/element-framing/RE-435-revolved-face-steps.md, the reconnaissance addendum andchangelog.d/changed/1737-revolved-face-steps.md.Testing
Measure unfiltered with
keep_ifc(43062414024, codee3dba3fd, kept atrefs/archive/2026-11-11/cited/e3dba3fd7833, againstmainaa5dc4c6) andtiming(43062418900); the same-project gates and the semantic check pass. Against Revit's export no class's median volume moves by more than 0.0006 (the largest body 0.0015). Two of the five rows registered on #1737 miss and are reported in RE-435: one RE1 Architecture shower head crosses the 0.001 ft line of Revit's vertices from the mesh (0.00073 to 0.00103 ft; two sinks of that file improve), and peak memory reads up to 1.04 ofmain's (Core Interior, byte for bytemain's, reads 1.04: the noise of the measure).Refs #1737