Repository navigation
Sunken garage: openings reach the garage floor, doorway stays open, no veil - #1204
Conversation
…arage leaves the level at grade A wall can go below the floor it stands on (a garage sunk 0.68 m beside the house, the wall's face going down to it), but openings could not follow: author_scene wrote every door on the floor and ignored its sill, and the window rule stopped at the floor. - author_scene doors and passages take their sill, negative included, so a garage door (its own module or a type) fills the doorway down to the garage floor. - clampWindowToWall lets a window down to the wall's bottom under it (centreline or either face), not only to the floor. - An opening's wall cut never reaches below the wall itself. The sunken garage also made its whole level "partly below grade", so the single-level view opened the ground window round the house. A floor sunk under its level's floor that opens to the outside through a door reaching down to it is now judged at the level's floor: the grade standing, the below-grade outlines and the level's ground box (the window's target) all leave it out. A sunken room with no such door is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rarely needed: a door stands on the floor as before unless sillHeight is given. With one (a garage door down to a garage floor sunk beside the wall, a step in the terrain) it keeps between the wall's bottom and its ceiling, as a window does, and reports clamped and the sill it got. A railing's gap ignores it and stays on the floor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he level at grade Seen on a converted house (112 Chinaberry Bend): the garage's floor was two sunken plates, a sliver touching the main one at a point, and only the plate the door stood on was let off. Plates at the walk-out floor's height of the same room, or joining it, now go with it. The same house still read partly below grade over its entry pad, a slab outside every room whose corner the terrain stood 0.304 m over. On a level with rooms, a slab outside all of them is the site's (a stoop, a pad), as flatwork is: it takes no part in the standing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tands on On 112 Chinaberry Bend the garage door (an author_scene door, its sill 0.85 m under the floor) cut its wall down to the garage floor, but the floor plate the wall stands on still ran across the doorway inside the wall's footprint: a strip across the door from outside, and from the garage its side face dropping to the garage floor like a panel in the doorway. An opening with a negative sill now takes its doorway out of every plate standing above its bottom (plateDoorwayCuts): the partition's top loses it, and the slab mesh takes it as holes (the builder subtracts holes crossing the outline). The plate at the door's bottom (the garage floor) is untouched, and a door on its floor keeps its threshold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cross it On 112 Chinaberry Bend the garage door still showed a bar at the level's floor over its left 2 m. The band of floor plate under the front wall runs 3 mm off the wall's outer face (slanted against it), and the doorway was cut to the wall's footprint exactly, so a hairline sliver of the band stayed in the doorway and its 5 cm side face read as a bar. The mesh holes were also the cut intersected with the plate, which put their edge back on the plate's own slanted edge. The doorway is now the wall's span past both faces by 2 cm, cut whole from the plate (top and mesh), so no edge of the cut runs along the plate's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 261b093. Configure here.
| : Math.max( | ||
| datum + opening.position[1] - opening.height / 2, | ||
| Math.min(datum, wallBottomUnderOpening(wall, opening, support)), | ||
| ) |
There was a problem hiding this comment.
Covered cut ignores opening sill
Medium Severity
The new sill-aware wall-cut clamp never runs when a floor plate covers the doorway. That is the usual garage-door case: a house-level band still sits under the wall. getOpeningWallCut then drops bottom to the wall's physical underside instead of the opening's sill, so a door that only drops partway still opens the wall — and plateDoorwayCuts then punches every plate above that underside — down to the garage.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 261b093. Configure here.
| const inside = a.length === 0 ? b : b.length === 0 ? a : [] | ||
| for (const slab of inside) | ||
| if (slab.elevation < floor && bottom <= slab.elevation + BELOW_GRADE_TOLERANCE) | ||
| walkOuts.set(slab.id, floor) |
There was a problem hiding this comment.
Walk-out reach uses grade slop
Low Severity
A sunken floor is treated as opening out when the door bottom is within BELOW_GRADE_TOLERANCE (0.3 m) of that floor. That constant is terrain slop for “ground over a floor,” not a reach test, so a door that stops well short of the garage still lifts the room to at-grade and drops the veil.
Reviewed by Cursor Bugbot for commit 261b093. Configure here.
Brings in pascalorg#1202 (the generic foundation and the 8 in seat removed) and pascalorg#1204 (sunken garage). One conflict, packages/mcp/README.md: the set_code_profile row is kept and the set_ground_level row is upstream's, which no longer mentions the foundation seat. None of the 13 exports pascalorg#1202 removed is referenced by the delivery's code; core, mcp and geometry-script tests and typechecks pass on the result. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>


What does this PR do?
A wall can go below the floor it stands on: a garage sunk under the house, its wall's face going down to the garage floor. Its openings and the ground view can now follow it.
sill, negative included. Before, every door was written standing on the floor and its sill was ignored. A garage door can now fill its doorway down to the garage floor.add_doorgets an optionalsillHeight, rarely needed; without it a door stands on the floor as before. The window rule (editor andadd_window) lets a window go down to the wall's real bottom, meaning the lowest of its centreline and either face. An opening's wall cut never goes below the wall itself.levelGroundBox(the ground window's target) starts at the lowest such floor, so the window no longer opens round the whole house for a garage.The opening clamp is deliberately not in
getOpeningFloorDatum: the legacy-wall-datum load migration reads parsed legacy doors at[0,0,0](a negative sill) and would write positions old scenes never stored.How to test
set_zone_intentfloor elevation −0.68), thenadd_dooron the garage part of the front wall withsillHeight−0.73 (or re-run author_scene with that door'ssill). The door and its wall cut reach the garage floor. From outside and from inside the garage, no band of floor crosses the doorway.list_levels), and the ground around the house is not veiled because of the garage. Remove the door and the garage reads as a sunken room again (partly below grade).Automated tests run locally:
bun testin core (6513 pass), nodes (5185), viewer (949), editor (2829), mcp (1382), all 0 fail; core and nodestsc --build;bun check(no errors). Also checked against a converted house (112 Chinaberry Bend) in the local community app.Screenshots / screen recording
Not added yet.
Checklist
bun devbun checkto verify)mainbranch🤖 Generated with Claude Code
Note
Medium Risk
Touches opening placement, wall CSG, plate partitioning, and below-grade classification across author_scene, agent tools, and rendering—high blast radius but covered by extensive new tests.
Overview
Doors and passages can sit below the wall’s main floor via
sill/ optionaladd_doorsillHeight(negative lowers toward a sunken slab). author_scene now places door/passage Y atsill + height/2instead of ignoring sill; planWallOpening treats sill like windows (clamp between wall bottom and ceiling) and returnssillHeightwhen not floor-mounted.Wall cuts and clamping use
wallBottomUnderOpeningso openings can extend down to a garage face without cutting past the wall; window vertical clamping uses the same lower bound.Floor plates subtract
plateDoorwayCutswhere an opening reaches below the level floor (partition + slab mesh holes), removing the floor strip that blocked garage doorways; a small face overshoot avoids slivers when plate edges are slightly off the wall.Grade / ground window:
slabGradeElevationtreats walk-out garages (sunken slab + exterior door to its floor) as judged at the level’s main floor; slabs outside all rooms count as site pads.levelGroundBoxuses that lowest judged floor so the ground veil no longer wraps the whole house for a walk-out garage.Reviewed by Cursor Bugbot for commit 261b093. Bugbot is set up for automated code reviews on this repo. Configure here.