Skip to content

Place IfcSpatialZone in its spatial parent's collection instead of Unsorted#8174

Open
carlopav wants to merge 1 commit into
IfcOpenShell:v0.8.0from
carlopav:fix-spatialzone-outliner-collection
Open

Place IfcSpatialZone in its spatial parent's collection instead of Unsorted#8174
carlopav wants to merge 1 commit into
IfcOpenShell:v0.8.0from
carlopav:fix-spatialzone-outliner-collection

Conversation

@carlopav

Copy link
Copy Markdown
Contributor

Spatial zones are intentionally excluded from getting their own collection (008fa70) since they are non-hierarchical, but they then fell through to the Unsorted collection because get_container() only follows IfcRelContainedInSpatialStructure while zones added from the spatial decomposition panel are aggregated. As Unsorted is hidden by default, a freshly created spatial zone disappeared from the viewport.

Link aggregated spatial zones to the collection of their nearest spatial parent that owns one, mirroring how aggregated elements are placed in their container.

…sorted

Spatial zones are intentionally excluded from getting their own
collection (008fa70) since they are non-hierarchical, but they then
fell through to the Unsorted collection because get_container() only
follows IfcRelContainedInSpatialStructure while zones added from the
spatial decomposition panel are aggregated. As Unsorted is hidden by
default, a freshly created spatial zone disappeared from the viewport.

Link aggregated spatial zones to the collection of their nearest
spatial parent that owns one, mirroring how aggregated elements are
placed in their container.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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