Geometric and topological aspects of quantum defects