Influence of Geometry and Topology on Helicity