Snap2cad: 3D indoor environment reconstruction for AR/VR applications using a smartphone device