Floor Plan Generation with Voronoi Diagram

The Rust optimizer with central finite-difference gradients, ported by Claude and compiled to WASM, running live in browser

Four weighted terms shape each plan: wall snaps every room edge to the nearest boundary segment's angle (diagonal-friendly), area drives rooms toward their target sizes, Lloyd keeps cells compact, and topology keeps each room a single piece.

Loss
total
wall
area
lloyd
topo
Boundary
Layout
60
5
Wall
0.020
Loss weight (0–1)
0.70
0.10
0.12
0.06
Optimization
800
0.005
777