(R1 X R2) . R3 should be positive, so add a check generating the supercell