Orthogonalize three-node ways (addresses #1077)