50 Commits

Author SHA1 Message Date
wass08
bfe685b011 fix polygon editor edition + events propagation 2026-02-09 13:38:12 +09:00
wass08
f2c1da1655 simplify poligon editor / boundaries editor 2026-02-09 12:48:35 +09:00
wass08
81f132611e remove custom raycasters 2026-02-09 12:23:38 +09:00
Aymeric Rabot
7a871be792 Add slab polygon editing with drag, add, and delete vertices
Reuse the shared PolygonEditor for slab boundary editing with levelY
and surfaceHeight support. Handles render as 3D cylinders that adapt
to slab thickness. Prevent deselection after drag by suppressing
grid:click propagation, and reset preview state on undo/redo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 14:49:53 -05:00
Aymeric Rabot
31a560e2c5 Use raycast cursor & level Y fallback
Ceiling and slab tools: switch cursor tracking to per-frame raycasting onto a level plane (useFrame) instead of relying on grid:move events, and memoize Raycaster/Plane to reduce allocations. Update line geometry updates to be performed imperatively from the frame loop, ensure previews only trigger React updates when the snapped display position changes, and keep cursor/preview snapping consistent with user-visible pointer. Add sceneRegistry-based fallback to resolve a level's Y position (used by Grid, CeilingTool and SlabTool) when the level mesh isn't registered yet, computing Y from level node data and viewer levelMode. Misc: import/add necessary three.js types and small refactors to visibility/reset logic.
2026-02-07 11:58:17 -05:00
wass08
74b70b7877 wall snapping to 45° 2026-02-05 15:20:21 +09:00
wass08
40e3ce8d84 site boundary editor 2026-02-05 15:07:49 +09:00
wass08
73dfac795a fix placement 2026-02-02 11:39:38 +09:00
wass08
72a0e3952a slab panel 2026-02-02 11:17:47 +09:00
Aymeric Rabot
6c99851006 Refactor asset types and improve UI primitives
Replaces usage of the Asset type with AssetInput across editor components and hooks for consistency with core types. Adds default dimensions fallback for asset placement logic. Refactors UI primitives (button, sidebar, opacity control) to support forwarding refs and asChild prop, and updates imports for primitives. Updates Radix UI dependencies in package.json and bun.lock.
2026-01-30 22:01:25 -05:00
wass08
fe4ca47193 fix furnish node 2026-01-30 10:13:14 +09:00
wass08
9501971c80 fix drag zone issue 2026-01-29 13:25:16 +09:00
wass08
f1a61350c7 roof 2026-01-29 12:52:35 +09:00
wass08
f4125db6a8 control bar 2026-01-29 10:14:40 +09:00
wass08
247180ebf9 push item when placing 2026-01-29 07:27:07 +09:00
wass08
10ef50f186 fix attach items 2026-01-29 07:17:25 +09:00
wass08
3b690038d7 move tool undo stack 2026-01-28 11:43:35 +09:00
wass08
82a18de88c move + item corrections 2026-01-28 10:54:12 +09:00
wass08
f50f7d105b fix undo / redo for item tool 2026-01-28 09:21:08 +09:00
wass08
dee61700b9 fix mechanism 2026-01-28 08:47:36 +09:00
wass08
8646cc8748 refacto item-tool 2026-01-28 07:47:47 +09:00
wass08
e27028a29a working ceiling items 2026-01-28 06:55:56 +09:00
wass08
6bd34762e5 draft attach item to ceiling 2026-01-28 06:46:03 +09:00
wass08
150a0a4ca1 ceiling rendering + tools fix 2026-01-27 09:36:11 +09:00
wass08
e3e3602d91 ceiling 2026-01-27 09:25:40 +09:00
wass08
8940f70117 slab renderer 2026-01-27 07:32:46 +09:00
wass08
54dd5d0541 fix wall mitering (three-mesh-csg) 2026-01-26 19:52:53 +09:00
wass08
192a58c47e transforming zones to nodes 2026-01-26 07:40:52 +09:00
wass08
e49ba32d18 attach to wall side 2026-01-23 12:33:50 +09:00
wass08
3240266476 transient nodes 2026-01-23 11:13:11 +09:00
wass08
4f20586ae9 shortcuts and deletion 2026-01-23 10:30:24 +09:00
wass08
eb0ccac30f zone editor 2026-01-22 12:24:55 +09:00
wass08
68e573f494 zone creation editor 2026-01-22 10:11:15 +09:00
wass08
3ab5077ea0 draft zone 2026-01-22 09:32:28 +09:00
wass08
5de0818633 biome 2026-01-21 10:03:29 +09:00
wass08
7a0512bdce snap to grid 2026-01-21 09:02:38 +09:00
wass08
a338bea4e7 rewrite selection system 2026-01-21 08:00:31 +09:00
wass08
980dd4c3dc level items 2026-01-20 08:39:14 +09:00
wass08
dabaefc57a different level edition + fix 2026-01-20 08:26:47 +09:00
wass08
f59e12193d wall item checks 2026-01-20 07:56:40 +09:00
wass08
2caadae40e fix grid items to be linked to walls 2026-01-19 09:39:54 +09:00
wass08
f3456aed42 can place on wall 2026-01-19 09:32:46 +09:00
wass08
69148705c6 check wall + clean attach/detach 2026-01-19 08:29:43 +09:00
wass08
a217d0d3a6 drafting wall attach system 2026-01-19 07:59:06 +09:00
wass08
159b61d22a showing what is placeable or not 2026-01-18 11:09:05 +09:00
wass08
35a479df15 can place draft 2026-01-18 11:03:48 +09:00
wass08
8bf933ed36 draft spatial grid 2026-01-18 10:54:02 +09:00
wass08
162c70552c item catalog draft 2026-01-17 15:40:04 +09:00
wass08
87029005f6 draft item tool 2026-01-17 11:36:24 +09:00
wass08
59be752eb4 drafting tools 2026-01-17 08:58:17 +09:00