Repository navigation
fix(partitions): stop inventing rooms and floors; they come from element records only - #308
Merged
Conversation
…ent records only The partition MVP filled in name-only rooms (space-like display strings) and plan-loop floors (closed runs of f64 pairs that miss the ArcWall centrelines). Neither matched anything in Revit's own exports: - every family file, on every release, gained a room named "Office Equipment"; - the Revit 2025 RE1 Electrical, Mechanical and Plumbing models (Drshelden/IFC-ECS, MIT) exported 38 slabs and 71 spaces named after space-type strings, while Revit's exports of them hold none; - on two Revit 2023 projects with paired exports the name-only path found none of the 9 real rooms of one and invented "Office Equipment" in both, and none of the 17 plan loops (mostly triangles) comes within 10% of the plan area of any exported slab; - Snowdon Towers gained 37 and 15 name-only rooms, one of them a view name, and RE-25 had already found no plan loop with the bounds of any Core Interior plate. Rooms and floors now come from element records only. Record-backed walls, doors, windows, columns, slabs and rooms are unchanged (Core Interior and RE1 Architecture export exactly as before); a 2023 file exports its ArcWalls without invented floors or rooms, and a family file exports no building elements. PartitionSchemaMvp::floors and is_strict_room_name are removed; the RE-20 probe's H5 hypothesis, which read the plan-loop floors, is retired. tests/rooms_floors_from_records_only.rs checks all 11 family releases.
Bugbot couldn't run - usage limit reachedBugbot 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_5c6f973c-c8ec-4538-8eb5-52abf9116ba8) |
DrunkOnJava
deleted the
fix/record-releases-no-heuristic-rooms-floors
branch
September 23, 2026 01:42
3 of 4 tasks
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
The partition MVP no longer invents rooms and floors. Its name-only rooms (space-like display strings) and plan-loop floors (closed runs of f64 pairs that miss the ArcWall centrelines) matched nothing in Revit's own exports, so rooms and floors now come from partition element records only.
Motivation
Measured against every Revit export available as an oracle:
Drshelden/IFC-ECS, MIT)IfcSlab, noIfcSpaceMost plan loops are triangles:
scan_closed_plan_loopsaccepts four f64 pairs whose last point returns to the first. RE-25 had already found no plan loop with the bounds of any Core Interior plate. Not one true positive turned up on any file with a reference.Changes
src/partition_schema_mvp.rs:rooms_from_names,floors_from_partition_plan_loopsand their helpers are removed, along withPartitionSchemaMvp::floorsandis_strict_room_name. Record-backed slabs and rooms are untouched.examples/probe_level_elementid_recovery.rs: H5 (ElemTable ids near the plan-loop floors) is retired along with its input.tests/rooms_floors_from_records_only.rs(new): no Room or Floor on any of the 11 family releases.tests/iter_elements_typed.rs: Einhoven must yield none.viewer/tests/viewer-regression.spec.ts: Einhoven now reports nounsupported_geometry_missing_level(only the invented rooms had one), and its schedule has a single IFCWALL group. Multi-type grouping stays covered byschedule_groups_by_ifc_type_biggest_first.After the change:
Testing
tools/check-local.sh --corpus(fmt, clippy, rustdoc, workspace tests with the family and project corpora): 328 test binaries greennpm run test:browseragainst Einhoven: 14 passedAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
PartitionSchemaMvp::floorsandpartition_schema_mvp::is_strict_room_nameare removed (CHANGELOG, Removed). Floors are inPartitionSchemaMvp::slabs.Related issues
Refs #86, #94, #95.
Note
Medium Risk
Behavior change for exports and
iter_elementson files without decodable room/slab records (2023, families, MEP samples); public API removal ofPartitionSchemaMvp::floorsandis_strict_room_name.Overview
Stops inventing rooms and floors in the partition MVP. Name-only rooms from partition strings and ArcWall-excluded plan-loop floors are removed; rooms and slabs/floors now come only from partition element records (
OST_Rooms,OST_Floors/OST_BuildingPad).PartitionSchemaMvp::floors,is_strict_room_name, and the plan-loop scan (~300 lines inpartition_schema_mvp.rs) are deleted.recover_partition_schema_mvpno longer callsrooms_from_namesorfloors_from_partition_plan_loops; record-backed paths are unchanged. 2023 projects like Einhoven export ArcWalls only (no fake slabs/spaces); family files export no Room/Floor on any release.Docs (README, status, compatibility, ROADMAP, support-matrix, CHANGELOG) drop claims about Room/Floor plan-loop recovery. New
tests/rooms_floors_from_records_only.rsgates all 11 family releases;iter_elements_typedand viewer regression tests expect zero invented floors/rooms on 2023 Einhoven.Reviewed by Cursor Bugbot for commit b2f12ac. Configure here.