Semi-automated reconstruction of indoor geometry from 360-degree video for CFD-based airflow analysis in classrooms

Dhruv Gamdha, James Afful, Shambhavi Joshi, Ulrike Passe, Adarsh Krishnamurthy, Baskar GanapathysubramanianarXiv 2026

TL;DR

This paper introduces a semi-automated pipeline that transforms a simple 360-degree video from a consumer camera into simulation-ready 3D assets for Computational Fluid Dynamics (CFD) airflow analysis. By combining Neural Radiance Fields (NeRF) and text-prompted segmentation (SAM 3), the workflow eliminates the need for expensive laser scanners or tedious manual CAD modeling, enabling rapid, low-cost ventilation studies of real-world indoor spaces.

What Problem Does This Paper Address?

Evaluating indoor air quality and ventilation effectiveness has become a major priority, particularly in shared spaces like classrooms. Computational Fluid Dynamics (CFD) is the tool of choice for simulating how air and contaminants move through a room. However, deploying CFD at scale faces a massive bottleneck: geometry preparation.

Currently, creating an accurate 3D model of a room requires either expensive terrestrial laser scanners ($50k–$200k) or days of manual CAD modeling from physical measurements. Furthermore, standard "Scan-to-BIM" tools generate monolithic surface representations rather than decomposing a room into distinct, manipulable objects (like individual chairs and tables). This makes parametric "what-if" testing—such as rearranging furniture or changing occupancy layouts—prohibitively time-consuming and expensive.

Methods

The authors present an end-to-end workflow that bridges the gap between casual video capture and rigorous engineering simulation:

  1. Data Acquisition & Reconstruction: A consumer 360-degree camera (under $500) captures the room in minutes. The video frames are projected into perspective views, camera poses are calculated via Structure-from-Motion (COLMAP), and a dense 3D point cloud is generated using a Neural Radiance Field (NeRF) framework.
  2. Semantic Processing: The pipeline utilizes the Segment Anything Model 3 (SAM 3) with text prompts (e.g., "chair") to isolate objects in 2D. These masks are projected into 3D space and refined using multi-view consensus voting and depth-band filtering to eliminate background noise and occlusion artifacts.
  3. Geometry Alignment & Healing: Individual object point clouds are extracted using an octree structure. Occlusion gaps (like missing chair legs) are repaired using a graph-based healing algorithm. Standardized objects (chairs) are fitted to CAD templates using Iterative Closest Point (ICP) alignment, while variable objects (tables) are generated procedurally using Principal Component Analysis (PCA).
  4. Human-in-the-Loop Editing: A lightweight, browser-based GUI allows users to quickly review the automated placements, correct misalignments, rearrange layouts, or batch-place occupant mannequins.
  5. CFD Simulation: The final watertight STL geometries are automatically prepared for OpenFOAM, utilizing a steady Reynolds-averaged Navier-Stokes (RANS) closure to solve the airflow field, followed by a transient passive-scalar transport solve to model contaminant clearance.
Figure 1: End-to-end workflow from 360-degree video capture to CFD simulation. The figure groups the five stages of Section 3 into three phases: (1) reconstruction (camera pose estimation and NeRF-based scene capture), (2) semantic processing (concept- prompted segmentation, multi-view filtering, and STL generation, with human-in-the-loop scene editing through a browser- based GUI), and (3) simulation (CFD analysis across multiple room configurations).

Datasets

The workflow was evaluated on three real-world university environments captured by the authors:

  • A Mixed-Furniture Classroom (32 chairs, 17 tables) used for parametric layout testing.
  • A Chair-Dominant Classroom (47 chairs, 3 tables) to test generalizability.
  • A large, tiered Lecture-Hall Auditorium (242 chairs, 2 tables) to test geometric and computational scalability.

The underlying CFD framework was validated against the canonical IEA Annex 20 two-dimensional benchmark room dataset to ensure accurate representation of wall-attached supply jets and room-scale recirculation.

Key Insights and Ideas

  • Non-Monotonic Clearance Behavior: Intuitively, one might think adding furniture simply restricts airflow and slows down ventilation. However, the simulations revealed that adding tables actually decreased pollutant clearance times compared to a room with just chairs. Broad horizontal table surfaces redistribute descending air currents, fundamentally altering the room's recirculation zones.
  • The Necessity of Per-Room Capture: Cross-room comparisons demonstrated that ventilation performance cannot be reliably extrapolated from a reference room. Minor differences in room envelopes, furniture distributions, and HVAC layouts dominate clearance behavior, justifying the need for a low-cost method to capture individual room geometries.
  • Decoupling Recall and Precision: Instead of trying to filter out point cloud noise early during the NeRF reconstruction phase, the authors deliberately preserved a noisy point cloud to maximize geometric recall. Precision was recovered downstream where semantic context (SAM 3 masks) could cleanly separate true object geometry from floating artifacts.

Key Results

  • Processing Speed: The entire capture-to-geometry pass takes only 2 to 5 hours per room on a standard consumer workstation (NVIDIA RTX 4070 GPU).
  • Scalability: The pipeline successfully scaled from a 4.5 million cell mesh for an empty classroom up to a 27.9 million cell mesh for the large tiered auditorium.
  • Quantifiable IAQ Metrics: In the mixed-furniture classroom sequence, the calculated half-clearance time ($t_{50}$) varied non-monotonically: 130.4 seconds for the empty room, rising to 143.3 seconds with chairs added, and dropping back down to 135.6 seconds when tables were introduced.

Limitations and Future Work

  • Simplified Physics: To maintain a comparative framework, the current CFD model is isothermal and treats occupant mannequins as passive solid obstructions. It omits thermal plumes from human body heat and breathing jets, which are critical for absolute exposure predictions.
  • Idealized HVAC Boundary Conditions: Supply diffusers are represented as flat rectangular patches with uniform downward velocity rather than resolving complex louvered or swirl diffuser hardware.
  • Instance Separation Failures: The octree-based connected-component algorithm struggled with the vertically stacked, tiered seating of the auditorium, resulting in a 12.8% overcount (detecting 273 chairs instead of the actual 242) because seat backs and cushions from adjacent rows were spatially close enough to merge.

Future work includes coupling the reconstructed geometry directly with unfitted finite-element methods (like the Shifted Boundary Method) to completely bypass the need for watertight surface generation and mesh healing.

Summary updated

Abstract

Computational Fluid Dynamics (CFD) is widely used to evaluate ventilation and contaminant transport in occupied buildings, but deployment at scale is limited by three bottlenecks: acquiring room geometry without costly scanning hardware or manual CAD modeling, decomposing the scene into individually manipulable objects, and reconfiguring those objects for alternative layouts without re-capturing the room. We present a semi-automated workflow that converts a single 360-degree video of a room into individually editable, simulation-ready geometry assets. A dense point cloud is reconstructed using Neural Radiance Fields (NeRF), and 2D instance masks from text-prompted SAM 3 segmentation are lifted to 3D using multi-view consensus and depth-band filtering. Points are separated into object instances with an octree, and occlusion gaps are healed with a connectivity graph. Chair templates are fitted by Iterative Closest Point (ICP) alignment, and table geometry is generated procedurally. A browser-based editor supports quality assurance and rapid construction of alternative layout configurations. A steady Reynolds-averaged OpenFOAM solution then drives transient passive-scalar transport; the setup is verified using a mesh-sensitivity study and validated against an IEA Annex 20 benchmark. We apply the workflow to two university classrooms and a tiered lecture-hall auditorium. The capture-to-geometry pass takes two to five hours per room on a consumer workstation. In a controlled obstruction sequence in one classroom, the modeled half-clearance time varies non-monotonically as furniture is added, and a cross-room comparison indicates that clearance behavior cannot be reliably extrapolated between rooms, motivating per-room geometry acquisition. By making that acquisition low-cost, the workflow makes geometry-resolved comparative ventilation studies practical for spaces such as classrooms.
BibTeX
@misc{gamdha2026semi,
  author = {Dhruv Gamdha and James Afful and Shambhavi Joshi and Ulrike Passe and Adarsh Krishnamurthy and Baskar Ganapathysubramanian},
  title = {{Semi-automated reconstruction of indoor geometry from 360-degree video for CFD-based airflow analysis in classrooms}},
  year = {2026},
  eprint = {2609.23425},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.23425},
}
Figure