wall_size = 1.5; tol = 1; seg = 60; base_wall_size = 3; base_size_x = 56; base_size_y = 72; base_size_z = 6; plate_size_x = 56; plate_size_y = 56; plate_elevation = 37.5; usb_dist_x = 8.5; usb_size_x = 8; usb_size_z = 3; screw_dia = 3.2; thread_insert_dia = 4; thread_insert_z = 6.7; side_size_x = 10; side_size_y = 10; side_size_z = plate_elevation - base_size_z; top_size_x = plate_size_x; top_size_y = plate_size_y; top_size_z = 6; stem_tol = 0.1; stem_dist = 5.7; stem_size_x = 1.2 + stem_tol; stem_size_y = 3 + stem_tol; stem_size_z = 3; stem_hole = 2; weight_size_x1 = 100; weight_size_y1 = 100; weight_size_x2 = top_size_x + tol + 2 * wall_size; weight_size_y2 = top_size_y + tol + 2 * wall_size; weight_size_z = max((weight_size_x1 - weight_size_x2)/2, (weight_size_y1 - weight_size_y2)/2); weight_scale_x = weight_size_x2 / weight_size_x1; weight_scale_y = weight_size_y2 / weight_size_y1;