Repository navigation
fix(research): a room outline's straight-turn test takes a sine under 1e-8 as straight, so two timber office rooms drop a vertex Revit's outline does not have (#1825) - #1866
Conversation
… 1e-8 as straight, so two timber office rooms drop a vertex Revit's outline does not have (#1825)
…o turn as 1e-8 to 1e-6, a held-out model holding two between 1e-9 and 1e-8 (#1825)
|
Unfiltered Measure 43344855602 at
Ready for review. |
## Summary Release metadata for v0.20.0 (RELEASE.md, steps 4 to 7), cut from `main` at `925c482d` and merged with `main` up to `58395b62` (#1855, #1860, #1861, #1863, #1866, #1867 and #1868 among it): - every version file moves to 0.20.0 (`tools/release/bump_version.py`), and `CITATION.cff` is dated 2026-11-12; - the fragments under `changelog.d/` are assembled into a `[0.20.0]` section, with its introduction and "Upgrading from 0.19" (the work-budget bullet says a stop warns and the export is still written, as #1855 settled); - the README's release lines name v0.20.0; - Core Interior's two witness observations and verdicts, and the two synthetic IFC fixtures, are taken from CI's artifacts for `e10580d0`: only `witness_version`, the verdict hashes, the retired "Unmapped Revit unit identifiers" warning (RE-445) and an unset transparency (#1820) differ. Measured and rehearsed: - the comparison with 0.19.0 is in the section, from Measure runs [43357862138](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43357862138) (unfiltered, `58395b62` against `v0.19.0`'s `09b18bd3`: 49 of 146 exports move, 0 census regressions, 0 body regressions) and [43357979238](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43357979238) (timing: no file more than 3% slower except one that reads 0.98 in the earlier run of the same code, no peak higher by more than 2%, the samples of 2023 to 2027 at a median 0.76 times the peak memory). The release adds only notes, witness files, version strings and fixtures to `58395b62`, so a run of `main` is the run of the release; a run of this branch would move every export through the header's version string; - `publish.yml` rehearsal on `d9946f4b`: [43359414819](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43359414819) passed. Only the changelog changed since. **Why now.** `main` holds today's crafted-file and security fixes (#1815, #1831, #1833, #1845), and neither GlobalId move. #1850 is back in draft until the tag, and #1854's fix is #1859. Those two ship together in 0.21.0 (#1854 comment 6841360704). ## Testing - `python3 tools/release/changelog.py check` passes: no fragment is left. - `bump_version.py` checks the version files with the preflight's own `check_versions`. - The PII guard runs `release_preflight.py` on this PR. - Timing against 0.19.0 is in the section, from run 43357979238 on `58395b62`. ## Related issues Release 0.20.0. Milestone `0.20.0`.
Summary
native_area_regions.rs'scontinues_straightdecides whether two straight edges of a room's outline run on in one line, so that the point between them is left out. It took a turn as straight only where its sine was under 1e-12. The threshold is now 1e-8.On the BIM4LCA timber office, at both saves, two rooms (
TSTO5,TSTO9) kept such a point, and Revit's own outline does not have it. #1825 row 7's variant at 1e-9 brought both rooms within 0.01 ft of Revit's (run 43338166730, named by kept-IFC run 43343069460; comments 6840784694 and 6840989096).Motivation
#1825 counts the geometric tests whose threshold a small drift can tip. Row 7's census (comment 6839299460) found:
The census on the 24 held-out, BIMcollab and
rac_advancedIFC2X3 models (run 43344511881, counts only) adds one held-out Revit 2021 model. It holds 2 turns between 1e-12 and 1e-9, which row 7's variant moved without changing any scorer line, and 2 between 1e-9 and 1e-8. So on all 126 models the band with no value is 1e-8 to 1e-6, and 1e-8 also turns those last 2 into straight continuations. What that does to the held-out model is row 3.Changes
continues_straight: 1e-12 → 1e-8, relative to the two edges' lengths as before, with a comment saying why.changelog.d/fixed/1825-straight-turn.md.Testing
Rows, registered before the run:
TSTO5andTSTO9losing 2 outline points each, and the held-out Revit 2021 model that row 7's variant moved. Every otherifc.sha256anddiagnostics.jsonis identical. A move anywhere else is named here.space_profiles_vs_ifccounts vertices within 0.01 ft 120 → 122. No line of any scorer moves away from Revit's export, the held-out models included.same-project gatespass.The run: unfiltered Measure of this head against its merge-base, every scorer, with the samples, BIM4LCA, R2025,
rac_advancedand the held-out models.rustfmt --edition 2024 --checkpasses; CI runs the restAudit-honesty checklist
research/1825-threshold-censusLegal and contribution hygiene
Breaking changes
None.
Related issues
Part of #1825 (row 7).