Skip to content

Infer an eligible host level for doors and windows - #320

Merged
IPedrax merged 1 commit into
IPedrax:mainfrom
jonaswre:fix/opening-default-host-level
Nov 11, 2026
Merged

IPedrax merged 1 commit into
IPedrax:mainfrom
jonaswre:fix/opening-default-host-level

Conversation

@jonaswre

@jonaswre jonaswre commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

A door or window placed with at and no level currently fails when an empty foundation level sits below its valid host wall. Search eligible plan cuts from elevation zero upwards, then negative elevations downwards. Explicit level and wall retain their authority; failed lookups retain useful wall-span/cut diagnostics.

Add ten command-driven integration tests for ground/upper floors, stacked hosts, below-ground fallback, explicit overrides, atomic errors/Undo, native save/reopen, visible plan pixels, and IFC fill/void/host relationships. Document the default and refresh generated catalog source references.

Closes #316.

Validation report: #316 (comment)

Synthetic evidence and complete commands: https://github.com/jonaswre/BIMCraft/tree/3b347f5284bff7a761a3ce87afef1758a6f05f01/evidence/issue-316

Validation: ten integration tests; 30 existing opening and 35 existing door tests; core all-target Clippy with warnings denied; formatting; translation catalogs. The rebuilt source CLI saves and reopens with identical element/GUID/host queries and plan pixels. IfcOpenShell independently builds the generated IFC geometry; the repository validator reports 10 products, 5 shapes, 0 problems.

Local limit: a broader wall group was interrupted after 151 passes while an unrelated annotated-tower fixture remained active at local opt0; that run is incomplete. Full workspace/platform checks and standard IFC CI jobs remain required. Local-only Cargo overrides were profile.dev.package.bimcraft-core.opt-level=0 and profile.dev.debug=0; the CLI build used --no-default-features to omit optional DWG/Revit readers. No tests or CI checks were disabled or weakened.

@IPedrax
IPedrax merged commit 25d7aa4 into IPedrax:main Nov 11, 2026
5 checks passed
IPedrax added a commit that referenced this pull request Nov 11, 2026
…it level

With #343 an explicit level places an opening at that level's elevation, so the Foundation's puts the door under the wall's base and is refused naming that wall. The wall stays the host either way, which is what the test is for.
@dronov-dmitry dronov-dmitry moved this to Done in BIMCraft Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug Report] Opening at a point defaults to an empty foundation level instead of its wall

2 participants