Skip to content

fix(elements): leave out placed instances with no 3D volume, as Revit does (#309) - #316

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/skip-volumeless-record-instances
Sep 23, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/skip-volumeless-record-instances

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Placed element-record instances whose bounding box has no volume (2D symbol families) are left out of the export, as Revit's own IFC export leaves them out. The sidecar reports them as element_record_without_volume. This cuts the Snowdon elements outside Revit's export from 115 to 55.

Motivation

#309 tracks elements rvt-rs exports that Revit's export omits. After RE-34 (#313) that was 115 on Snowdon Towers. They follow their type: eight type ids that no exported element names cover 111 of them. Three of those types sit next to the strings "Floor Drain-2D", "ADA Clear Space" and "Wheel Chair Circle", which are 2D symbol families with no 3D body.

The byte signature is exact:

category omitted, bbox flat on an axis exported by Revit, bbox flat
Specialty equipment 45 / 45 0 / 211
Plumbing fixtures 15 / 15 0 / 130
all other categories – 0
Core Interior, RE1 Architecture / Mechanical / Plumbing, Snowdon Structural – 0 (no flat instance at all)

Changes

  • src/partition_element_records.rs:
    • VOLUME_EPSILON_FEET and PartitionElementRecord::has_volume;
    • scan_volumeless_instances, which counts by class once per ElementId;
    • flat second-prologue frames no longer count as unattributed.
  • src/partition_schema_mvp.rs: select_instance_records skips instances without volume. Sketch lines take their own path and are unaffected.
  • src/ifc/mod.rs: the element_record_without_volume skipped item. It is not counted toward unexported_element_records, because these are omitted by design, not missing.
  • Docs: README, docs/status.md, docs/export-diagnostics.md, the schema's reason description, docs/support-matrix.json (Snowdon now 4,185 exported, 55 outside Revit's export), a RE-34 report §8 addendum, and CHANGELOG.

Testing

  • tools/check-local.sh --corpus
  • Unit test: a flat and a solid instance, decoded and counted
  • Snowdon Architectural: 4,185 exported; 4,077 of 4,132 tagged in Revit's export; element_record_without_volume = 60 (45 + 15); unexported_element_records unchanged at 684
  • Core Interior: IFC byte-identical apart from the header timestamp

Breaking changes

None. The skipped item is additive.

Related issues

Refs #309 (the 47 curtain panels, 7 walls and 1 slab remain; the panel types include the system "Empty" panel).


Note

Low Risk
Export filtering and additive diagnostics only; Core Interior IFC stays byte-identical aside from header timestamp per PR testing.

Overview
Placed partition element-record instances whose bounding box is flat on any axis (2D symbol families such as floor drains and ADA clearance graphics) are no longer exported, aligning rvt-rs with Revit’s IFC behavior (#309).

Export path: PartitionElementRecord::has_volume() (with VOLUME_EPSILON_FEET) gates instance selection in select_instance_records and unattributed-frame counting; flat second-prologue frames are not treated as missing ElementIds.

Diagnostics: IFC export diagnostics add a skipped bucket element_record_without_volume (via scan_volumeless_instances), documented in the export-diagnostics schema and user docs. These omissions are intentional and do not feed unexported_element_records.

Measured impact: On Snowdon Towers Architectural, export drops from 4,245 to 4,185 elements; elements outside Revit’s export fall from 115 to 55 (60 volumeless instances). Docs, support matrix, and CHANGELOG are updated accordingly.

Reviewed by Cursor Bugbot for commit 4ad86fa. Configure here.

… does (#309)

The Snowdon Towers elements Revit's IFC export omits follow their type,
and three of those types are 2D symbol families: "Floor Drain-2D",
"ADA Clear Space", "Wheel Chair Circle". Their record bounding boxes are
flat on one axis: all 45 omitted specialty-equipment instances and all
15 omitted plumbing fixtures. None of the 4,077 elements the export does
hold is flat, and none is on Core Interior or the RE1 models.

PartitionElementRecord::has_volume now gates instance selection, flat
second-prologue frames no longer count as unexported, and the sidecar
reports what is left out as element_record_without_volume. Snowdon
exports 4,185 elements, 55 of them outside Revit's export (47 curtain
panels, 7 bleacher walls, the #309 slab); Core Interior is unchanged.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 23, 2026 03:20
@cursor

cursor Bot commented Sep 23, 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_06032065-550c-49f3-8d76-8c0c1a6d7ee4)

@DrunkOnJava
DrunkOnJava merged commit 08e2740 into main Sep 23, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/skip-volumeless-record-instances branch September 23, 2026 03:22
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