Indoor Scene Reconstruction using Primitive-driven Space Partitioning and Graph-cut