Deakstadieđáhus: Coplanar repeats by energy minimization