Repository navigation
fix(elements): leave out placed instances with no 3D volume, as Revit does (#309) - #316
Merged
Merged
Conversation
… 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
enabled auto-merge (squash)
September 23, 2026 03:20
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_06032065-550c-49f3-8d76-8c0c1a6d7ee4) |
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
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:
Changes
src/partition_element_records.rs:VOLUME_EPSILON_FEETandPartitionElementRecord::has_volume;scan_volumeless_instances, which counts by class once per ElementId;src/partition_schema_mvp.rs:select_instance_recordsskips instances without volume. Sketch lines take their own path and are unaffected.src/ifc/mod.rs: theelement_record_without_volumeskipped item. It is not counted towardunexported_element_records, because these are omitted by design, not missing.Testing
tools/check-local.sh --corpuselement_record_without_volume= 60 (45 + 15);unexported_element_recordsunchanged at 684Breaking 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()(withVOLUME_EPSILON_FEET) gates instance selection inselect_instance_recordsand unattributed-frame counting; flat second-prologue frames are not treated as missing ElementIds.Diagnostics: IFC export diagnostics add a
skippedbucketelement_record_without_volume(viascan_volumeless_instances), documented in the export-diagnostics schema and user docs. These omissions are intentional and do not feedunexported_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.