Spun out the cone axis generation code into generate_vector().
Authored by: bugman 2009-06-25
Parent: [r9144]
Child: [r9146]