This paper presents a novel method for semi-automatically constructing building models from photogrammetric 3D line segments of buildings, i.e., their roof edges. The method, which we call "Split-Merge-Shape" (SMS), can treat both complete line segments a