3
1
Back

Margins from edges h_margin = hole_dist_side + thickness; h_margin = hole_dist_side + thickness; v_margin = hole_dist_top*2; left_rib_x = thickness * 1; //right_rib_x = width_mm - h_margin; out_row_1 = v_margin+12; out_row_2 = out_working_increment*1 + out_row_1; rotary_knob_row = top_row - 30; left_rib_x = thickness * 1; right_rib_x = width_mm - hole_dist_side - thickness; left_panel_spacing = (left_panel_width) / 2.5; slider_spacing = 12.5; // space between them right_panel_width = width_mm - hole_dist_side - thickness; left_panel_spacing = (left_panel_width) / 2.5; slider_spacing = 12.5; // space between them right_panel_width = width_mm - hole_dist_side - thickness; // draw panel, subtract holes union() { shape(fsh, cird+cdp*smt/100, cord, cfn*4, chg); module shape(hsh, ird, ord, fn4, hg y0=-0.1; y1=0; y2=abs(hsh); y3=hg-abs(hsh); y4=hg; y5=hg+0.1; if ( fsh == 0 cylinder(h=chg, r=cord-cdp*smt/100, $fn=2*cfn, center=false); shape(fsh, cird, cord-cdp*smt/100, cfn*4, chg); module shape(hsh, ird, ord, fn4, hg x0= 0; x1 = hsh > 0 ? Ird : ord; x2 = hsh > 0 ? Ord : ird; y0=-0.1; y1=0; y2=abs(hsh); y3=hg-abs(hsh); y4=hg; y5=hg+0.1; if ( fsh == 0 cylinder(h=chg, r=cord-cdp*smt/100, $fn=2*cfn, center=false.

New Pull Request