Allowing domain_length to work with non-planar inputs