PROJECT STUDY
Spatial Digital Twin
Explore a layout before moving a single chair.
An editable 3D planning workspace for comparing room layouts, checking clearances, and simulating queues before a space is rearranged.
Explore the build
At a glance
- Industry
- Hospitality and retail
- Capabilities
- 7
- Technologies
- 12
- Year
- 2026
Room dimensions on synthetic LiDAR walkthroughs
Three-hour cafe simulation over ten seeds
The challenge
Rearranging a cafe, shop or warehouse means more than fitting furniture into a floor plan.
A team needs to compare access, walking routes, seating, queues and service capacity before committing to the move.
Measurements also vary in quality. A planning tool should show where a dimension comes from and which parts still need checking.
What we built
Spatial Digital Twin brings capture, layout editing and operational simulation into one planning workspace.
Capture and review
The pipeline accepts capture bundles from the phone app, plain video and photo sets. Reconstruction methods fall back according to available depth, poses and compute, while the quality report records the method and confidence
A 2D and 3D editor
Teams place furniture, adjust objects and compare layout options side by side, with versions, comments and approval roles for the people who sign off a change
Clearance and route checks
Geometry checks identify collisions, aisle widths, door and exit clearance, wheelchair routes and capacity constraints. Issues appear at their location in the layout
What-if scenarios
Cafe service, retail checkout, event arrivals and warehouse picking can be simulated across multiple random seeds. Results show ranges rather than a single unexplained estimate
Suggested layouts
A constraint solver proposes options for a goal such as seating capacity. Natural-language edits in English or Indonesian preview changes before the user saves them
A live layer
CCTV and IP cameras, looped video files and browser cameras map anonymous foot positions onto the twin for heatmaps, replay and movement patterns. Camera images stay on the server, and only anonymous positions reach the twin
Imports and exports
Floor plans import from DXF, PDF or images, and layouts export to glTF, DXF and PDF reports
Capture and review
The pipeline accepts capture bundles from the phone app, plain video and photo sets. Reconstruction methods fall back according to available depth, poses and compute, while the quality report records the method and confidence
A 2D and 3D editor
Teams place furniture, adjust objects and compare layout options side by side, with versions, comments and approval roles for the people who sign off a change
Clearance and route checks
Geometry checks identify collisions, aisle widths, door and exit clearance, wheelchair routes and capacity constraints. Issues appear at their location in the layout
What-if scenarios
Cafe service, retail checkout, event arrivals and warehouse picking can be simulated across multiple random seeds. Results show ranges rather than a single unexplained estimate
Suggested layouts
A constraint solver proposes options for a goal such as seating capacity. Natural-language edits in English or Indonesian preview changes before the user saves them
A live layer
CCTV and IP cameras, looped video files and browser cameras map anonymous foot positions onto the twin for heatmaps, replay and movement patterns. Camera images stay on the server, and only anonymous positions reach the twin
Imports and exports
Floor plans import from DXF, PDF or images, and layouts export to glTF, DXF and PDF reports
How it works
Capture the space
The Flutter app records a guided ARKit or ARCore walkthrough and uploads it through a resumable, checksummed queue; a plain video or a set of photos works too. People are masked before reconstruction, and any frame that is kept is anonymised first.
Review the measured twin
The reconstruction is a starting point for review. Walls and openings are extracted, objects are matched to the space type's library, and dimensions carry confidence and verification flags, so measurements with weak evidence get a reference scale and a human check before the twin is published.
Compare options on one model
Every layout option is one validated model that the editor, the geometry checks, the optimiser, the simulator and the exports all read, so checks, simulations and drawings always describe the same layout.
Numbers from geometry and simulation
Layout metrics and simulation values come from geometry and simulation code. Optional language-model features help interpret commands or summarise outputs; they do not invent room sizes or operational numbers.
Heavy work runs as jobs
Scan processing, splats, stitching, simulation runs and option generation go to a database-backed job queue whose CPU and GPU workers claim jobs atomically and send heartbeats. WebSockets stream job progress and live positions to the browser.
Engineering insights
Every number in the twin comes from geometry, simulation or a stated measurement source, and the code records how far to trust it.
Stack by layer
- Frontend
- React
- TypeScript
- Vite
- three.js
- React Three Fiber
- drei
- GaussianSplats3D
- Zustand
- Flutter
- ARKit
- ARCore
- Backend
- Python
- FastAPI
- Pydantic
- SQLAlchemy
- WebSockets
- NumPy
- SciPy
- Shapely
- OR-Tools
- SimPy
- ReportLab
- ezdxf
- Data
- PostgreSQL
- SQLite
- SeaweedFS
- S3-compatible object storage
- glTF
- DXF
- AI
- OpenCV
- ONNX Runtime
- YOLOX
- YuNet
- Depth Anything V2
- Google Gemini
- COLMAP (optional)
- MapAnything (optional GPU)
- RF-DETR (optional GPU)
- gsplat (optional GPU)
- Infrastructure
- Docker
- Docker Compose
- Caddy
- NVIDIA CUDA
- pytest
- Vitest
Reconstruction keeps the first result that passes
The selector plans its methods from what the capture and the server offer, from a GPU model through sensor depth, stereo and structure-from-motion to single-view depth. Each result must pass depth, point and tracking checks, a crashing method never stops the chain, and every rejected attempt is written to the scan's quality report
Every dimension states how far to trust it
Confidence follows the source of the metric scale, from above 0.9 for a tape reference, ArUco marker or LiDAR down to 0.6 for a camera-height prior. Values below 0.7 are flagged for verification, so reviewers see which room, door and furniture sizes to check
One clearance grid serves every agent width
The walkable floor is rasterised once, and a distance transform stores each cell's clearance, so the same grid answers routes for people, wheelchairs and forklifts. Paths run on a 16-connected lattice that never cuts corners, and each violation carries its measured and required values and a location the editor can pin
Simulation results are ranges
Each scenario runs over ten seeds by default and reports every KPI as a p10 to p90 range around the median. Both options face the same customers, and a difference counts as significant only when the two ranges do not overlap
The language model only picks editor functions
Gemini must answer with function calls whose item ids come from the space type's library, and a deterministic executor applies at most eight of them to a copy of the layout. Without a key, or when a call fails, a rule-based English and Indonesian parser takes over
Design system
Warm Holo pairs a warm cream canvas and a sunset-orange brand with a violet "holo" colour, so the cafe, shop and venue teams who scan, plan and approve a space together always see what is selected and where people walk.
Colour palette
- Sunset orange
#f2602fBrand accent for active navigation, spinners and sliders; primary buttons use the sunset gradient - Holo violet
#6e54f5Selected objects in 2D and 3D, keyboard focus rings and walking routes - Live teal
#0e9a80Live badges, exits, staff avatars and items added in a layout diff - Violation red
#d83a48Errors, rule violations and items removed in a layout diff - Queue amber
#f5a524Warnings in the plan and 3D view, queue lines and items moved in a layout diff - Warm cream
#fff8f1Light page background; the dark theme switches to #150e13 - Warm ink
#2b1d16Body text in the light theme
Colour
Violet marks selection, keyboard focus and walking routes, while red, amber and teal mark violations, warnings and live or added items. The SVG plan and the three.js scene read the same visualisation tokens, so a selection or a rule violation looks the same in 2D and 3D
Typography
Space Grotesk for headings, Plus Jakarta Sans for interface text at a 14 px base, and JetBrains Mono with tabular numerals for measurements, stat values and chart ticks, all self-hosted through Fontsource
Components
In-house React primitives such as Modal, Popover, Tabs, Segmented, Dropzone, StatTile, VizCard, StatusBadge and Toasts, styled with plain CSS over custom properties. The 2D plan is hand-built SVG, and the 3D view uses React Three Fiber, drei and Gaussian splats
One token set, two themes
Light, dark and always-dark surfaces come from one token file, and a unit test keeps its visualisation colours equal to the palette module that three.js reads
Accessibility
A skip link, visible keyboard focus rings and reduced-motion fallbacks are part of the base styles
Where this fits
Retailers, hospitality teams and venue planners can compare changes before moving the physical space. Explore our computer vision, web applications, mobile applications and AI solutions, see our food and beverage and retail work, or discuss your planning workflow.
- ServiceComputer vision
- ServiceWeb apps
- ServiceMobile apps
- ServiceAI solutions
- IndustryFood & beverage
- IndustryRetail
KEEP EXPLORING
Another problem. A different approach.

Finly
A personal-finance and split-bill app for Indonesia: accounts and spending on a balanced ledger, bank notifications and forwarded email captured into a Review Inbox, and shared bills with receipt scanning, live item claims and settle-up.

Mining Fatigue Guard
In-cab fatigue and driving monitoring for open-pit haul trucks: a microsleep alarm in the cab and a control-room console where supervisors see, acknowledge and act on each alarm.
Let’s connect the dots
Let's put these ideas to work.
Share a process, product, or problem you want to improve. We will work through the possibilities together.