Geometry, topology and soft matter