Skip to content

research: the plan-profile scorer takes a top surface's area as the plan union of its upward faces, so a sloped top counts whole (#824) - #866

Merged
DrunkOnJava merged 2 commits into
mainfrom
research/plan-profile-union
Oct 20, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
research/plan-profile-union

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Part of #824. tools/re/plan_profiles_vs_ifc.py kept only the upward faces at a body's highest level. Revit writes a layered floor as one solid per layer, so that filter stopped each layer from being counted. On a tilted floor, though, the faces at the highest level are one triangle of the top's two. So the BIM4LCA office's 8 sloped floors read as exactly twice Revit's area, and looked like triangles (#824, the comment of 2026-10-20).

The scorer now takes the plan union of every upward face. That still counts a stacked layer's outline once, and it keeps a sloped top whole. Points and the outline come from all upward faces.

Measured

Measure run 39370597357 scored the same exports as main's latest run. Main's own exports did not change between the two (#861 and #863 touched no slab).

model area off (before → after) outline off vertices off
office, as built 31 → 23 31 → 23 35 → 29
office, permit 32 → 24 33 → 25 37 → 31
Core Interior unchanged (80 of 80) unchanged unchanged
RE1 Architecture unchanged unchanged unchanged

The 8 slabs that move are the sloped floors. Their outline was always Revit's: the gap is their slope, which rvt-rs does not read and this scorer does not compare.

Tooling only; no export changes.

…lan union of its upward faces, so a sloped top counts whole (#824)

It kept only the upward faces at a body's highest level, which on a tilted floor is one triangle of its two: the BIM4LCA office's 8 sloped floors read as exactly twice Revit's area (#824). The plan union of every upward face counts a stacked layer's outline once, as the level filter did, and a sloped top whole.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 20, 2026 04:51
@DrunkOnJava
DrunkOnJava merged commit ef028c0 into main Oct 20, 2026
25 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/plan-profile-union branch October 20, 2026 04:57
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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