3
1
Back

// overall 3u height panelInnerHeight = 110; //rail clearance = ~11.675mm, top and bottom railHeight = (threeUHeight-panelOuterHeight)/2; mountSurfaceHeight = (panelOuterHeight-panelInnerHeight-railHeight*2)/2; hp=5.08; mountHoleDiameter = 3.2; mountHoleRad =mountHoleDiameter/2; hwCubeWidth = holeWidth-mountHoleDiameter; offsetToMountHoleCenterY=mountSurfaceHeight/2; offsetToMountHoleCenterX=hp;//1hp margin on each - Could add a global/master pitch control/modulation function with a hair of margin // margins from edges h_margin = hole_dist_side + thickness; working_height = height - hole_dist_top); cylinder(r=hole_r, h=thickness*2); echo("Putting a hole with radius: ", hole_r , " at ", width_mm - thickness*2; // draw panel, subtract holes union() { shape(fsh, cird+cdp*smt/100, cord, cfn*4, chg); module shape(hsh, ird, ord, fn4, hg) { x0= 0; x1 = hsh > 0 ? Ord : ird; y0=-0.1; y1=0; y2=abs(hsh); y3=hg-abs(hsh); y4=hg; y5=hg+0.1; if ( hsh >= 0 } module make_surface(filename, h) { cylinder(r=hole_r, h=thickness*2); echo("Putting a hole with radius: ", hole_r , " at ", width_mm - h_margin; //special-case the knob main shape. [mm] knob_radius_bottom = 10; knob_radius_bottom = 10; // [1:1:84] width = 12; // overkill; currently three 3.5mm jacks needing 8mm //calculated x value of exact middle of panel after deducting left/right sub-panels slider_center.

New Pull Request