Reconstruction of buildings