Morphogenesis of lines and nets