def gearring_constraint(c):
    """ convert the axle_lid constraint into gearring constraint
  """
    gr_c = {}
    gr_c['gear_tooth_nb'] = 0
    gr_c['gear_primitive_diameter'] = 2.0 * c['clearance_radius']
    gr_c['holder_diameter'] = 2.0 * c['holder_radius']
    gr_c['holder_crenel_number'] = c['holder_crenel_number']
    gr_c['holder_position_angle'] = c['holder_position_angle']
    gr_c['holder_hole_position_radius'] = c['holder_hole_position_radius']
    gr_c['holder_hole_diameter'] = c['holder_hole_diameter']
    gr_c['holder_double_hole_diameter'] = c['holder_double_hole_diameter']
    gr_c['holder_double_hole_length'] = c['holder_double_hole_length']
    gr_c['holder_double_hole_position'] = c['holder_double_hole_position']
    gr_c['holder_double_hole_mark_nb'] = c['holder_double_hole_mark_nb']
    gr_c['holder_crenel_position'] = c['holder_crenel_position']
    gr_c['holder_crenel_height'] = c['holder_crenel_height']
    gr_c['holder_crenel_width'] = c['holder_crenel_width']
    gr_c['holder_crenel_skin_width'] = c['holder_crenel_skin_width']
    gr_c['holder_crenel_router_bit_radius'] = c[
        'holder_crenel_router_bit_radius']
    gr_c['holder_smoothing_radius'] = c['holder_smoothing_radius']
    gr_c['cnc_router_bit_radius'] = c['cnc_router_bit_radius']
    gr_c['gear_profile_height'] = c['extrusion_height']
    gr_c['center_position_x'] = 0.0
    gr_c['center_position_y'] = 0.0
    gr_c['gear_initial_angle'] = 0.0
    return gr_c
