Skip to content

feat(elements): draw tapered walls with their leaning exterior face (#358) (RE-86) - #446

Merged
DrunkOnJava merged 1 commit into
mainfrom
research/solar-wall-bodies
Sep 28, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
research/solar-wall-bodies

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Tapered walls (RE-86, #358). A wall type stores three face angles after a fixed frame, and the word after a wall's location-line setting is its cross-section: 1 for a vertical wall, 2 for a tapered one. Each tapered wall is now drawn as its cross-section, leaning on its exterior face, extruded along its line. Before, it was drawn as its record box, up to 9.3 ft wider than the wall.

Motivation

#227's largest remaining residual was 23 Snowdon openings in "Solar Wall" hosts that rvt-rs drew as boxes. #358 recorded that the walls kept as boxes carry 0 or 2 in that word. Revit exports these walls with a 3D axis and tessellated or leaning bodies. Cut by height, one face is vertical and the other leans exactly 10.000 degrees.

The record

wall type data:  … · u32 2 · 00 × 8 · f64 0.7 · u32 3 · f64 · f64 · f64
  • On Snowdon Towers the three angles are 0 on 40 of the 43 wall types Revit exports. The three Solar Wall types store 10 degrees in the middle one.
  • Every wall with word 2 is a Solar Wall. Revit tapers each of them it exports, except one whose base it trims.
  • The face that leans is the wall's exterior, wider at the base. The interior face is vertical. At the top the body is the type's thickness about the line.
  • A Solar Wall with word 1 is vertical in Revit's export. The two walls with word 0 are slanted.
  • Core Interior, RE1 and the MIT house store no such frame.

Results

Snowdon Towers' 20 walls Revit tapers under word 2, tapered_walls_vs_ifc.py main this PR
across the wall, within 0.001 ft of Revit's cut at all five heights 0 19
across, within 0.1 ft 0 20
largest difference across 9.300 ft 0.052 ft
along, within 1 ft 7 20
largest difference along 2.328 ft 0.906 ft

wall_bodies_vs_ifc.py on the GLB, per wall against main:

  • 24 walls change, and all are better: the 17 tapered walls it scores as angled, and 7 walls whose ends now join a tapered wall's body instead of its box.
  • Angled walls with both faces within 0.001 ft: 91 of 94 (75 on main).
  • Angled walls with both ends within 1 ft: 83 (69 on main).
  • README walls row: faces Revit's on 1,030 of 1,078 walls (1,014 on main), both ends on 724 (716).

Changes

  • src/partition_compound_structure.rs: WALL_FACE_ANGLES_FRAME, wall_type_face_angles, scan_wall_type_face_angles (Revit 2024). An angle is accepted only if it is 0, or between 1e-9 rad and a right angle, because the frame's bytes also occur by chance elsewhere.
  • src/partition_schema_mvp.rs: attach_wall_layers takes a straight wall with word 2 as tapered where its type stores [0, a, 0] with 0 < a < 45 degrees. It records the wall's line and thickness as for a vertical wall, plus WALL_EXTERIOR_FACE_ANGLE_FIELD. Also WallTaper, wall_taper_from_fields, wall_is_tapered.
  • src/ifc/export_content.rs:
    • tapered_wall_body checks the plan footprint against the record box as a vertical wall T + H tan(a) thick on the line moved towards the exterior, so RE-26's and RE-70's ends apply unchanged.
    • tapered_wall_solid is the trapezoid as a PlacedExtrusion along the line. BodySource partition_wall_tapered_section.
    • A wall marked tapered without its exterior side is not drawn from its line at all.
  • examples/probe_re86_tapered_walls.rs, tools/re/tapered_walls_vs_ifc.py (cuts both bodies at five heights, in Revit's internal frame via the site placement), reports/element-framing/RE-86-tapered-walls.md.
  • README walls row, docs/supported-profile.md, docs/status.md, support matrix, recon addendum, CHANGELOG.

Testing

Unit tests are banned in this repository; none were added.

  • Gates: fmt, clippy -D warnings, rustdoc -D warnings, cargo +1.85.0 check, fuzz workspace check, and tools/ci/verify-real-files.sh --profile ci with both corpora.
  • End to end on Snowdon Towers architectural (Autodesk sample, local only, never committed), against Revit's own IFC4 export (IfcOpenShell 0.8.5). Commands:
    cargo run --profile ci --example probe_re86_tapered_walls -- MODEL.rvt > walls.jsonl
    ./target/ci/rvt-ifc MODEL.rvt -o model.ifc
    python3 tools/re/tapered_walls_vs_ifc.py walls.jsonl model.ifc REVIT_EXPORT.ifc
    ./target/ci/rvt-gltf MODEL.rvt -o model.glb
    python3 tools/re/wall_bodies_vs_ifc.py model.glb REVIT_EXPORT.ifc
    The GLB draws each tapered wall as one mesh. rvt-ifc takes 11.0 s (11.4 s on main). Openings are unchanged (124 of 194 within 0.26 ft, as on main).
  • Snowdon structural, Core Interior, the four RE1 models, Einhoven and the MIT house (2024 and 2025): IFC byte-identical to main's apart from the timestamp. Core Interior is unchanged, so the witness observations replay as committed.

Audit-honesty checklist

  • README, supported profile, status, support matrix and CHANGELOG state the measured result and what stays open.
  • New limitations: none. Still open, in the report's §4:
  • No emojis, private paths or personal data.
  • RE finding: probe, report and recon addendum included.

Legal and contribution hygiene

  • Apache-2.0. Byte observations and comparisons with Revit's exported IFC, no Autodesk code.

Breaking changes

None. New public items: partition_compound_structure::{WALL_FACE_ANGLES_SUPPORTED_REVIT_VERSIONS, WALL_FACE_ANGLES_FRAME, wall_type_face_angles, scan_wall_type_face_angles}, partition_schema_mvp::{WALL_EXTERIOR_FACE_ANGLE_FIELD, WallTaper, wall_taper_from_fields, wall_is_tapered}, ifc::export_content::WALL_TAPERED_BODY_SOURCE.

Related issues

Refs #358, #227.


Note

Medium Risk
Changes wall solid generation and IFC/GLB geometry for a subset of walls; impact is mitigated by Revit IFC regression tooling and unchanged exports on most corpora.

Overview
Tapered walls (orientation word 2 on Revit 2024) are no longer exported as record bounding boxes. The PR reads three face angles from wall-type partition data (WALL_FACE_ANGLES_FRAME, middle angle for Solar Wall types), attaches m_wall_exterior_face_angle on straight tapered instances, and builds IFC/GLB bodies as a trapezoid cross-section extruded along the centreline (BodySource partition_wall_tapered_section). Plan footprint still goes through the same box checks and join trimming as vertical centreline walls; layered join profiles are skipped for tapered walls.

Adds probe_re86_tapered_walls, tapered_walls_vs_ifc.py, and RE-86 documentation; README/support-matrix metrics improve on Snowdon (e.g. face match 1,014 → 1,030). Slanted walls (word 0) and curved tapered walls unchanged (box). Other local IFC exports stay byte-identical aside from timestamps. fuzz/Cargo.lock bumps cfb 0.14 → 0.15.

Reviewed by Cursor Bugbot for commit 010259e24ee3fc0397d6833a346ff8bedd96cd17. Configure here.

@cursor

cursor Bot commented Sep 28, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_655fb75b-b2bb-4900-a370-9b2e136a4f8c)

…358) (RE-86)

A wall type stores three face angles after a fixed frame (u32 2, eight
zero bytes, f64 0.7, a count of 3), and a wall whose orientation word is 2
is tapered by them. On Snowdon Towers each such wall Revit tapers leans its
exterior face by the type's 10 degrees, wider at the base, keeps its
interior face vertical, and is its type's thickness about its line at the
top. Each is now that trapezoid extruded along its line instead of its
record box: 19 of the 20 within 0.001 ft of Revit's body across the wall
at five heights (none within 0.1 ft before).
@DrunkOnJava
DrunkOnJava force-pushed the research/solar-wall-bodies branch from 902a5ab to 129dc18 Compare September 28, 2026 03:51
@DrunkOnJava
DrunkOnJava merged commit 3c485f4 into main Sep 28, 2026
20 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/solar-wall-bodies branch September 28, 2026 03:57
DrunkOnJava added a commit that referenced this pull request Nov 3, 2026
… provenance lines agree with the reports, and it states the partial-mesh box rule (RE-224) (#1259)

## Summary

Two reviews of the README found statements that contradict each other or
the reports. This fixes them in place; a second PR will slim the README
and render its compatibility table from `docs/support-matrix.json`.

## Motivation

A reader who finds one contradiction starts doubting the measured
numbers too. Each correction below takes its figure from the report or
commit that measured it.

## Changes

- **Revit 2008 to 2014:** the IFC elements row, the element-extraction
gap, the MVP workflow, the "Revit 2016 to 2027 files" bullet and the
viewer paragraph now agree with the by-input rows. Since RE-259 and
RE-260, 2008 to 2014 element records decode experimentally, outside the
1.0 range, on local files only. The 2015 to 2018 row no longer says
2014's records are not read.
- **Revit 2015 to 2022, 2026 and 2027:** the MVP workflow no longer says
"treat IFC export as the spatial scaffold". It says the export is
experimental, as the by-input table does, and that each row says what
its release is measured against. The lead paragraph names 2008 to 2022,
and the gap row adds the one 2015 project measured against Revit's
export (RE-198).
- **Before Revit 2008:** files are not read (the reader's year floor is
2008), where the README said they give the spatial scaffold.
- **Revit 2023:** the gap row lists what the by-input table measures,
not RE-81's first "identity, category and box".
- **Geometry row:** doors and windows are drawn from saved meshes by
default since 0.11.0, not boxes.
- **CSV schedules:** typed on every release whose element records
decode, not 2024 only.
- **Layer 5a walker:** it says elements come from partition records, so
the walker's 2024 to 2026 range does not limit element recovery.
- **Snowdon Towers figures:**
- 126 doors, not 132 (RE-94 and its opening report; 132 is Core
Interior's).
- Both wall ends on 724, not 716 (#446, RE-86, moved the walls row from
716 to 724 and missed the gap row).
  - Wall names over the 1,077 walls RE-63 matches by `Tag`.
- **Office wall heights:** the 579 is the office walls Revit's export
gives a `Height` (RE-257).
- **Schema release counts:** 12 releases (2016 to 2027) where the text
is current; the whole-schema field count gives both the 11-release and
12-release figures.
- **Type `IsExternal`:** sourced to RE-286 §3's measurement, not "the
maintainer".
- **Symbol cross-check:** "every class and field name" becomes "the
class names, by sample".
- **`encoding_rs`:** std does not panic on malformed UTF-16;
`String::from_utf16` rejects the string, while `encoding_rs` replaces
the pair. The README and the `Cargo.toml` comment say so.
- **Contributors and Scalar-Container gap:** the pre-policy unit tests
were removed from the crate's source (#1126), not kept unrun, the
Scalar-Container round-trip tests among them.
- **Provenance:** the licence section lists the sources `CLEANROOM.md`
accepts. Besides file bytes and `RevitAPI.dll` symbol names, these are
published reverse-engineering work, buildingSMART's specifications, and
`revit-ifc`, read for what Revit's export writes and never for the file
format. The README already cites `revit-ifc` in several places.
- **New:** one sentence says what a "Measure run" and an RE number are.
The geometry gap states the RE-224 rule: since 0.9.0, a saved mesh with
any undecoded part keeps its element's box, and `rvt-ifc` counts those
elements. This rule is behind #1247.
- **Viewer:** the workflow note in `viewer/index.html` names 2008 to
2022 as experimental.

## Testing

N/A for code: docs, a `Cargo.toml` comment and one viewer text line
only. A review read every changed line against the reports,
`CLEANROOM.md`, `CHANGELOG.md` and the source. Its four blocking
findings (the 2026 and pre-2015 measurement wording, the version of the
partial-mesh rule, the Scalar-Container tests, the 2008 to 2015 bullet)
are fixed in 7516668. `tools/ci/api-doc-ids.py` passes, so every cited
RE number has a report. The checks that read the README
(`tests/binary_inventory.rs`, `tools/ci/wasm-api.py`,
`tests/python/test_docs_python.py`) read text this does not change.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] No user-visible capability change, so no changelog fragment
- [x] Commit message describes what and why
- [x] No emojis, private paths or internal jargon added

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary source (see `CLEANROOM.md`)

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
…e page as not re-run, and name the base of the failing count (#1192)

The profile labels them (local run of 2026-09-27 in #446, RE-322's quote of RE-70 to RE-74); the evidence page carried the same figures unlabelled. The changelog fragment names the commit its 51 failing clauses were counted on. Refs #1192
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
… check (#1192)

The second read of #1484 found figures the first pass only labelled and a
check that was looser than its documentation.

Figures. The saved-mesh figures from Measure run 40192112285 (October) were
stale: the BIM4LCA office's 1,294 of 1,709 and RE1's 207 and 148 of 214 are
now run 41850769925's at e024f03, which RE-304 and RE-331 section 4.4 agree
with: the office 1,554 of 1,650 as built and 1,638 of 1,738 at permit, RE1
148 of 228 exact and 228 of 228 within 0.01 ft of Revit's box, Core Interior
138 of 138. The office's doors are all drawn from their saved meshes (265 of
269 exact, run 41850758987). Also corrected: the 8 client models' ElementIds
were checked on one of them (#421, 2026-11-04); the 1,030 and 724 wall
figures cite #446; the --large-model preset is the source's 2 GiB and 8 GiB;
the beam and landing claim holds on 28 Revit 2025 models and the arc claim on
25; the 923 of 942 Snowdon Towers beams are on the fetched samples and not
local only; the index says what the MIT house, 255ribeiro and Vitoria rows
actually are; the re-run docs say that -f ifc_flags= figures, a fork dispatch
and the figures' re-run are untried or uncovered.

Check. Nothing inside parentheses ends a clause; headings are read; a number
must have a model name within 300 characters in its own clause; "local only"
must stand beside that model's name (nearer to it than to another model's, with
"both" and "all" reaching back); the failure message says how to mark a number
that is no measurement; the steps run last in the PII guard job. New refusals:
a number far from its model, a number in a heading, a local-only word beside
another model's name. 35 pure-judgement tests, 22 mutations of the script each
caught.

Refs #1192
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
…its model (#1192) (#1484)

## Summary

W10 of the 1.0 criteria (#1192): `tools/ci/measured_numbers.py`, the
last steps of the PII guard job, fails a number on the README or the
supported profile that has no model of a new "Model index" table in
`docs/reference-models.md` within 300 characters in its own clause, or a
number on a `local only` or `not shared` model without those words
beside that model's name, or an index row that does not say who can
fetch its model. The pages are edited until they pass, and the figures
the second read found stale are updated. One Measure dispatch is
documented as the command that re-runs the numbers on the models anyone
can fetch. The criteria's W10 row records both and stays **not
measured**.

## Motivation

W10 was not measured because nothing checked that a number names its
model (#1192). Several figures rest on models nobody else can fetch
(Snowdon Towers' exports, the MIT house, the 255ribeiro projects,
flowbim's house, the pre-2015 files, the client models), and a reader
could not tell which.

## Changes

- `tools/ci/measured_numbers.py` and
`tools/ci/test_measured_numbers.py`; three steps at the end of
`ci.yml`'s `pii-guard` job (the check, `--refusals`, the failure-first
tests).
- `docs/reference-models.md`: the Model index (19 models, four
fetchability words) and "Re-run the numbers" (the Measure dispatch, what
it covers, what it does not).
- `README.md`, `docs/supported-profile.md`, `docs/evidence.md`,
`docs/support-matrix.json`, `docs/release-1.0-criteria.md`: models
named, `local only` and `not shared` said, eight clauses marked `<!--
w10: reason -->`, the stale saved-mesh figures replaced, and a sentence
on how to read the figures.
- `docs/maintaining.md`: "Numbers on the README and the supported
profile".
- `changelog.d/changed/1192-numbers-name-their-model.md`.

### The rule

Every numeral on the two pages, in a heading as in a cell, is a number
except what its spelling marks as an identifier (an issue, a report, a
hash, a date, a Revit release or other year, a Measure run id, a layout
width, a tool's version, the 1.0 release). It needs a name from the
index within 300 characters in its own clause (between semicolons and
sentence ends, never split inside parentheses; each cell, item and
heading its own unit). `local only` / `not shared` must stand beside
that model's name (within 60 characters and nearer to it than to another
model's name; "both" and "all" reach back). A number that is not a
measurement carries `<!-- w10: reason -->`, which fails without a reason
or with nothing to excuse, and the failure message says so. No
allowlist. A pattern for measurements would miss the next form someone
writes; this fails any new form until it names a model.

What it cannot catch (stated in `docs/maintaining.md`): a number placed
near the wrong model's name, a number that is not true or not current, a
measured count inside a code span that is more than a number, a figure
spelled out in words, and the pages other than these two.

### Second read, and what I changed

- **Stale figures updated, not relabelled.** The BIM4LCA office's 1,294
of 1,709 and RE1's 207 and 148 of 214 (Measure 40192112285, October) are
now run 41850769925's at `e024f03c`, which RE-304 and RE-331 section 4.4
agree on, and which I re-totalled from that run's scorer files: the
office 1,554 of 1,650 exact as built and 1,638 of 1,738 at permit (265
of 269 doors and all 269 windows exact as built, run 41850758987 for the
default export, RE-331 section 4.1), RE1 148 of 228 exact (Architecture
45 of 53, Electrical 31 of 47, Mechanical 65 of 68, Plumbing 7 of 60)
and 228 of 228 within 0.01 ft of Revit's box. The "221 of 269 doors keep
their box" and "1,294 of the 1,352 bodies then drawn" sentences are
gone. **Core Interior: your note said 158 of 158 stands; run 41850769925
scores 138 saved-mesh bodies there (132 doors, 6 windows) and no shading
device, and RE-331 says 138, so the pages now say 138 of 138.** RE-78's
158 counted 20 shading devices; I did not find why they are no longer
scored. Snowdon Towers' 3,332 of 3,736 stays, labelled as RE-78's local
run not re-run since.
- `profile` 8 files' ElementIds: now the one Revit-side check from #421
(2026-11-04), with its counts; the other 7 are not checked.
- 1,030 and 724: cited to #446, not RE-70 to RE-74 (also on
`docs/evidence.md`).
- `--large-model`: the source's presets (2 GiB per stream, 8 GiB inflate
on 64-bit), marked.
- Beams and landings hold on 28 Revit 2025 models, arcs on 25 (README,
profile). `docs/compatibility.md`, `docs/evidence.md` line 15 and
`docs/support-matrix.json` lines 395, 422 and 440 still say 25 for the
beam and landing claims; outside the two pages, not changed.
- 923 of 942 Snowdon beams: the fetched samples (run 41787230413, RE-328
section 3), no longer local only.
- Index rows: the MIT house (the course page serves it, no script
fetches it), 255ribeiro (GitHub repository, no script fetches it),
Vitoria (`ALD26 Before` is spent and measured in full, the rest held
out); W10 row "none was cut"; fork dispatch and `-f ifc_flags=` figures
stated as untried and not covered; the "nobody has re-run and compared"
caveat is on the README and the profile.
- A pull request that moves a figure edits the page:
`docs/maintaining.md`.
- Check: parentheses, headings, proximity, local-only nearness, the
marker way out in the message, steps last.

### Numbers that could not be traced to a run, or only weakly

- **Snowdon Towers' 1,030 of 1,078 walls and 724 of 1,078 ends:** only
in #446's description (a local run, 2026-09-27) and `docs/evidence.md`;
kept, labelled "not re-run since". If you want them gone it is one
phrase in the Walls row.
- **Client-model counts:** #421 (comments of 2026-10-28, 2026-11-02,
2026-11-03, 2026-11-04) and #1075 (2026-11-02); the reporter's counts on
files nobody else has.
- **Snowdon Towers' 3,332 of 3,736 within 0.01 ft:** RE-78 (a local run,
not re-run since); CI cannot re-measure it.
- Spelled-out counts are not read; I named the models behind those in
the By-input table and the README by hand.

## Testing

Unit tests are banned here; the one exception is a pure helper, and
`test_measured_numbers.py` is that (35 cases, failure-first, no file or
network I/O; the first 28 are unchanged).

- [x] No Rust changed; `tools/check-local.sh` N/A (CI is the build)
- [x] End to end on the real pages: `python3
tools/ci/measured_numbers.py` passes (255 of 271 numbers name a model, 8
clauses marked). On the pages as they were at `f009976e`, the first form
of the check failed 51 clauses.
- [x] `python3 tools/ci/measured_numbers.py --refusals` copies the pages
and the index to a scratch directory, appends or breaks one thing each
time, and the check refuses it for the stated reason: a number with no
model, a local-only model that does not say so, a local-only word beside
another model's name, a number far from its model in a long clause, a
number in a heading, a marker with no reason, a marker with nothing to
excuse, an index row with no fetchability. It runs in CI. A scratch copy
with ", and 4,321 more beams" added to the 3,592-character Properties
clause also fails.
- [x] 22 mutations of the script (longest name, flag surviving its unit,
stale marker, no reason required, years, thousands comma, link targets,
hashes, heading rule, headings skipped, name boundary, any word
flagging, flag to every nearby name, unbounded flag gap, "both" and
"all" ignored, unbounded proximity, split inside parentheses, glued
unit, number-only code span, `2D`, numberless clause needing a flag,
message without the marker way out), each run against the tests in a
scratch copy: all fail them.
- [x] `changelog.py check`, `api-doc-ids.py`, `readme-matrix.py
--check`, `wasm-api.py docs`, `render-mcp-tools.py --check`,
`check-workflows.py` (PyYAML in a scratch venv, 0 errors) pass; the
matrix is valid JSON; the script and tests also pass on Python 3.11 and
3.12.
- Not run: `actionlint` (the environment's command filter refused it)
and CI itself, the first run of the new steps on a runner.
- Not measured: that the re-run command reproduces the pages' figures.
Nobody has compared; the dispatch is the one the cited runs were made
with. I did not dispatch Measure.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] Changelog fragment under `changelog.d/changed/`
- [x] No new limitation beyond those stated above
- [x] No emojis; no private paths or personal email addresses in
committed files
- N/A: no reverse-engineering finding

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source; no fixtures added

## Breaking changes

None for users. A pull request that adds a number to the README or the
supported profile without a model fails the PII guard job
(`docs/maintaining.md`). Open pull requests that touch these pages pass
their own CI until their next run after this merges, and #1468 (12
bindings becomes 13) will meet the marker at README line 85.

## Related issues

Refs #1192. Not `Closes`: the third done-when item is the maintainer
setting W10's bar, and the row's status records the result without
moving *proposed*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant