I'd hate to have to align my buildings to the roofing material. That seems backwards! (although, sometimes, practicality intervenes, dunnit).

This procedure begins to sound as if what it really needs to be fully automatic is an AI engine to recognize roof segments and their angles/curves.