Amplitude analysis of B- →D+π-π- decays