A primitive selection method for unconstrained line structures