From chemical topology to three-dimensional geometry