Isogeometric analysis of space rods