Classical models of a topological transition in cosmology