Repository navigation
Remove the generic foundation and the 8 in seat; terrain and skirts meet floors cleanly - #1202
Conversation
The foundation the viewer derived under every building (a concrete footing and an 8 in CMU stem under the exterior walls) looked wrong, did not follow terrain and spread to every shared floor plate. A foundation is set explicitly (set_floor_foundation, the floor construction) instead. - The generic foundation, its geometry and drawing, the drawsFoundation capability and pluginFoundationLevelIds are gone, with the capture helper that hid its meshes. - "Set as ground floor" and set_ground_level seat the ground floor on grade: the 8 in (0.203 m) seat over grade, which the generic foundation filled, is gone, with seatAboveGrade/seatBasis/stemThickness on the foundation constructions and aboveGrade/atFoundationTop on the ground seat. A floor seated is one on grade within 5 cm; a building seated 8 in up by the old rule reads unseated and comes down when set again. - deepestDrawnY is the lowest floor's underside (no footing under it). - Basement walls against the ground keep their foundation construction (8 in CMU with furring, cast concrete in Europe). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dark ribbon along a basement's outline, drawn while the ground is veiled, read as black wall tops. The hole and its pit already show where the ground is cut. Its colours (UNDERGROUND_RING, the palette's ring) and anyGroundVeiled, which only it read, go with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A flat site's fill lies 5 cm under the datum (FLAT_GROUND_Y) so floors at grade never sink into it, but a base plate's solid foundation, a porch's concrete edge and a plate filled to the terrain stopped at the datum. The 5 cm gap under them showed what stood behind it: the top of a basement's foundation wall, read as a band above the ground. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ground was cut open only where it stood more than 0.3 m (BELOW_GRADE_TOLERANCE) over a floor, so on a hillside the slope the terrain interpolates between the floor and 0.3 m over it showed as thin wedges inside a walk-out's rooms. terrainOverFloors gives the part of every visible floor plate the rendered terrain stands over at all, and the site cuts the ground there with the cover under the house. The tolerance still decides grade standing, the hole and the pit. 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 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8528119. Configure here.
| ) | ||
| const gradeRing = useMemo(gradeRingMaterial, []) | ||
| useEffect(() => () => gradeRing.dispose(), [gradeRing]) | ||
| }, [coverOpen, buried.covered, overFloors, polygonPoints, slabPolygons]) |
There was a problem hiding this comment.
Solid mode restores terrain wedges
Medium Severity
overFloors is merged into the same coverOpen gate as the basement cover. Viewing a walk-out with Solid ground drops those cuts, so the 0–0.3 m terrain band can show inside the rooms this PR set out to clear. Solid is meant to close the house cover, not put ground back over a visible floor.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 8528119. 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?
This removes most of what #1097 drew automatically around a house's foundation and ground, and fixes two places where the ground and a building met badly.
set_floor_foundation, the floor construction).drawsFoundationcapability,useViewer.pluginFoundationLevelIds, and the capture helper that hid its meshes.deepestDrawnYis now the lowest floor's underside.set_ground_levelused to stand the floor 8 in (0.203 m) over grade, a gap the generic foundation filled. That seat is removed:seatAboveGrade,seatBasis,stemThickness;aboveGrade,atFoundationTop.UNDERGROUND_RINGandanyGroundVeiled, which only the ring used, go with it.FLAT_GROUND_Y). A base plate's solid foundation, a porch's concrete edge, and a plate filled to the terrain stopped at the datum, so the top of a basement wall showed in the 5 cm gap. They now go down to the ground as the site draws it.BELOW_GRADE_TOLERANCE) over a floor. On a hillside, the slope between the floor and 0.3 m over it showed as thin wedges inside a walk-out's rooms.terrainOverFloorsreturns the part of every visible floor plate that the rendered terrain stands over, and the site cuts the ground there along with the cover under the house.The private repo's Bones plugin drops its
drawsFoundationcapability and itspluginFoundationLevelIdsclaims in the matching bump.How to test
bun test srcin core, viewer, nodes, editor and mcp;bun run check(no errors). Steps 1–5 were checked by Wassim in the community app.Screenshots / screen recording
Not added yet.
Checklist
bun devbun checkto verify)mainbranch🤖 Generated with Claude Code
Note
Medium Risk
Large behavioral change to building vertical placement, ground/agent APIs, and 3D ground rendering; saved scenes seated under the old 8 in rule will re-seat when users set ground level again.
Overview
Removes the derived generic foundation (footing + stem under exterior walls), the
drawsFoundationplugin hook, and all viewer geometry for it.deepestDrawnYnow stops at floor slab undersides, not footings.Ground seating no longer lifts the ground floor to a region-specific height above grade (8 in block, 15 cm cast concrete, etc.).
set_ground_level/ the level panel seat the named floor on grade (within tolerance);GroundSeatdropsaboveGrade,atFoundationTop, and foundation metadata from agent messages and MCP docs. Foundation construction data keeps wall assemblies only—noseatAboveGradeor stem thickness for seating.Site rendering: the grade ring veil is removed. New
terrainOverFloorsoutlines cut the rendered terrain wherever it sits over any visible floor plate (including small hillside wedges), separate from below-grade hole logic. Slab foundation skirts and fill-to-terrain extend toFLAT_GROUND_Yso they meet the drawn ground instead of stopping at the datum.Tests, agent fixtures, and editor ground-line UI are updated (
isGroundusesseatedinstead ofatFoundationTop).Reviewed by Cursor Bugbot for commit 8528119. Bugbot is set up for automated code reviews on this repo. Configure here.