Generation of space curves