Scan2Plan: Efficient Floorplan Generation from 3D Scans of Indoor Scenes

Ameya Phalak, Vijay Badrinarayanan, Andrew RabinovicharXiv 2020

TL;DR

Scan2Plan is a two-stage pipeline that converts 3D indoor scans into accurate 2D floorplans in seconds. By combining a deep-learning-based voting mechanism for room clustering with a procedural perimeter estimation, it achieves state-of-the-art accuracy while being over 100x faster than previous global optimization methods.

What Problem Does This Paper Address?

Generating floorplans from 3D scans is a critical task for AR/VR, architecture, and real estate. However, it faces two major hurdles:

  1. Scalability: Existing methods often use global graph optimization (like FloorSP), where complexity explodes as the number of rooms and walls increases. This makes them too slow for consumer-grade hardware.
  2. Data Scarcity: There is a severe lack of large-scale, real-world 3D datasets with annotated floorplans. Training deep networks "in the wild" is difficult because captured data is often noisy, cluttered, or incomplete.

Scan2Plan tackles these by breaking the global problem into smaller, parallelizable local problems and training exclusively on a procedurally generated synthetic dataset.

Methods

The Scan2Plan pipeline operates in two distinct stages:

Stage 1: Room and Wall Clustering The system takes an unordered 3D point cloud of structural elements (walls, doors, windows). It uses a PointNet++ backbone to identify "seed points." These seeds then "vote" for the centers of the rooms and walls they belong to—a technique inspired by VoteNet.

  • Room Voting: Seeds vote for the geometric center of the room.
  • Wall Voting: Seeds vote for the center of the specific wall segment. A spatial density-based clustering algorithm (DBSCAN) then groups these votes to isolate individual room and wall instances.
Fig. 2. Architecture of the Voting Module The network accepts a point cloud with N points in 3D Euclidean space at the input layer. A PointNet++ [27] backbone with set abstraction(SA) and feature propagation(FP) layers is utilized to sub-sample the input to a point cloud with M 3D points, referred to as seeds and a C length feature vector per seed. Vote generators FC1 and FC2, which are fully connected networks shared among all seeds, generate three 3D offset vectors per seed - two for room votes and one for wall votes.

Stage 2: Perimeter Estimation Once rooms are clustered, the system processes each room independently. It projects the 3D points onto a 2D plane and uses RANSAC to fit line segments to the walls. To form a closed room boundary, the authors treat the wall endpoints as nodes in a modified Traveling Salesman Problem (TSP), solving for the shortest path using a 2-opt algorithm. The final floorplan is simply the assembly of these individual room polygons.

Fig. 1. Scan2Plan is a robust and efficient method that extracts a detailed floorplan from a 3D scan of an indoor environment.

Datasets

  • Synthetic Dataset (New): The authors created a procedural generator using 3x3 binary kernels to define room shapes. It is highly configurable, allowing for random scaling, rotations, and simulated noise (like missing points for doors/windows).
  • Structured3D: A large-scale dataset of 3,500 apartment scans used for evaluation.
  • BKE Dataset: Used to test performance on LiDAR-captured data, including both a "clean" synthetic version (BKE-syn) and a version filtered from raw scans (BKE-struct).

Key Insights and Ideas

  • Divide and Conquer: By treating each room as an independent polygon rather than solving a single global graph, the method becomes highly parallelizable and avoids the exponential complexity of previous SOTA methods.
  • Synthetic-to-Real Transfer: The paper proves that a model trained entirely on simple synthetic shapes can generalize to complex, non-Manhattan real-world layouts. The secret lies in the randomized rotations and scaling applied during synthetic training, which teaches the network to recognize structural relationships rather than specific axis-aligned orientations.
  • Voting is Robust: Using a voting mechanism for centers (rather than direct segmentation) helps the model handle the inherent sparsity and noise of 3D point clouds.

Key Results

Scan2Plan significantly outperforms the previous state-of-the-art, FloorSP, particularly in efficiency:

  • Speedup: Scan2Plan processes a scan in approximately 3.96 seconds, compared to 487.50 seconds for FloorSP—a 123x speedup.
  • Accuracy: On the Structured3D dataset, Scan2Plan achieved higher Precision and Recall across corners, edges, and room instances. For example, Room Precision reached 0.880 (vs. 0.795 for FloorSP).
  • Complexity: The model successfully handles non-Manhattan layouts (rooms with non-90-degree angles) and scenes with more rooms than were ever seen during training.

Limitations and Future Work

Despite its strengths, the authors note several areas for improvement:

  • Clutter Sensitivity: In extremely cluttered environments, small rooms are sometimes missed or merged due to imperfect clustering.
  • Curved Walls: The current RANSAC-based line fitting approximates curves as single large segments or a series of jagged corners.
  • Non-Global Constraints: Because rooms are processed independently, missing data in the input scan can occasionally result in floorplans that aren't perfectly "compact" (i.e., small gaps between adjacent rooms).
  • Future Directions: The authors suggest moving toward an end-to-end trainable system that combines clustering and perimeter estimation, and adding semantic labels for doors and windows.

Summary updated

BibTeX
@misc{phalak2020scan,
  author = {Ameya Phalak and Vijay Badrinarayanan and Andrew Rabinovich},
  title = {{Scan2Plan: Efficient Floorplan Generation from 3D Scans of Indoor Scenes}},
  year = {2020},
  eprint = {2003.07356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.07356},
}
Figure