This pipeline is used for generating 2D floorplans using inexpensive RGB-D sensors such as the Kinect. Using ORB-SLAM, the camera trajectories and the 3D point clouds of the enclosures are obtained. The huge volumetric representations are abstracted to obtain rectilinear representations and then subsequently used for generating 2D floorplans.