calc_cylinder_params