Skip to content

Add Slab and Floor spatial elements with profileView/modelView support#65

Merged
aka-blackboots merged 2 commits into
mainfrom
claude/add-slab-floor-elements-1CRcS
May 1, 2026
Merged

Add Slab and Floor spatial elements with profileView/modelView support#65
aka-blackboots merged 2 commits into
mainfrom
claude/add-slab-floor-elements-1CRcS

Conversation

@bhairaav
Copy link
Copy Markdown
Collaborator

@bhairaav bhairaav commented May 1, 2026

Both elements follow the exact Door/Window/Wall pattern: extend OPElement,
implement IShape, use subElements2D/subElements3D maps, and expose
profileView/modelView getters-setters for dual 2D/3D view toggling.

  • Slab: structural element (default 0.25m thick, concrete), centered
    footprint polygon (2D) + extruded solid (3D)
  • Floor: finish surface element (default 0.02m thick, hardwood),
    same geometry pattern with FloorMaterial enum
  • Adds ElementType.FLOOR to the enum
  • Wires slab() and floor() factory methods into OpenPlans class

https://claude.ai/code/session_01HcACEEwfVA16ydPh9b6a6S

claude added 2 commits May 1, 2026 19:50
Both elements follow the exact Door/Window/Wall pattern: extend OPElement,
implement IShape, use subElements2D/subElements3D maps, and expose
profileView/modelView getters-setters for dual 2D/3D view toggling.

- Slab: structural element (default 0.25m thick, concrete), centered
  footprint polygon (2D) + extruded solid (3D)
- Floor: finish surface element (default 0.02m thick, hardwood),
  same geometry pattern with FloorMaterial enum
- Adds ElementType.FLOOR to the enum
- Wires slab() and floor() factory methods into OpenPlans class

https://claude.ai/code/session_01HcACEEwfVA16ydPh9b6a6S
Each example follows the same structure as door/window/wall examples:
- Full lil-gui panel covering all properties (width, length, thickness,
  elevation, color, material, outline, profileView, modelView)
- Fit to View and Log Config actions
- FloorMaterial enum values exposed in the dropdown via Object.values()

Index page gains a new "Slabs & Floors" section under Elements with
cards linking to both examples.

https://claude.ai/code/session_01HcACEEwfVA16ydPh9b6a6S
@aka-blackboots aka-blackboots merged commit 0064407 into main May 1, 2026
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.

3 participants