Formation of double helical and filamentous structures in models of physical and chemical gels.