Geometrically exact beam code