3D view only extrudes rectangles; polygons are unsupported #3

Closed
opened 2026-08-02 14:42:33 +00:00 by Mark · 1 comment
Owner

Problem: The extrudePath helper in src/components/editor/FloorplanCanvas.tsx returns an empty string for polygon shapes, so switching to 3D view hides polygon rooms' walls. This makes the 3D preview inconsistent for non-rectangular rooms.

Files to modify:

  • src/components/editor/FloorplanCanvas.tsx

Acceptance criteria:

  • Generate an extruded wall path for polygon shapes analogous to the rectangle extrusion.
  • Keep the existing 2D rendering unchanged.
  • Consider adding a small extrusion depth offset for all shapes.
**Problem:** The `extrudePath` helper in `src/components/editor/FloorplanCanvas.tsx` returns an empty string for polygon shapes, so switching to 3D view hides polygon rooms' walls. This makes the 3D preview inconsistent for non-rectangular rooms. **Files to modify:** - `src/components/editor/FloorplanCanvas.tsx` **Acceptance criteria:** - Generate an extruded wall path for polygon shapes analogous to the rectangle extrusion. - Keep the existing 2D rendering unchanged. - Consider adding a small extrusion depth offset for all shapes.
Mark closed this issue 2026-08-11 12:07:07 +00:00
Author
Owner

Fixed in 1c0a244. extrudePath now renders offset-prism walls for polygon shapes (previously returned an empty string, hiding polygon walls in 3D view). Verified in 3D view: both the Dining seed polygon and a newly drawn polygon render wall paths.

Fixed in 1c0a244. extrudePath now renders offset-prism walls for polygon shapes (previously returned an empty string, hiding polygon walls in 3D view). Verified in 3D view: both the Dining seed polygon and a newly drawn polygon render wall paths.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/kimi_agent_home_assistant#3
No description provided.