Carbon-nanotube geometries: Analytical and numerical results