An Isogeometric Approach to Beam Structures