Appearance
Three.js centroids
A generated scene of 25 buildings becomes a connected simulation graph. Each node comes from a transformed building centroid; each edge is a synthetic proximity link.
Use the Playback panel inside the graph card to play or pause, scrub the full-day timeline, change speed, or jump to morning, midday, and evening. Controls become available after the simulation finishes; Start rewinds and End shows everyone back home at 24:00.
From objects to a graph
The example uses boxes, whose geometric centroids match their bounding-box centers. It transforms those centers into world space, including object translation, rotation, and scale, then maps Three.js Y-up coordinates into the graph’s Z-up coordinates. Each node connects to its three nearest neighbors; shortest bridges join any disconnected components. These links demonstrate graph construction, not inferred walkable paths through buildings. Edge lengths include height differences.
Use Buildings and Graph to inspect the relationship between the scene and the network. Change People or Seed, then select Run simulation to apply them. Agents make scheduled trips between home and work buildings and return home.