Active filaments I: Curvature and torsion generation