3
1
Back

= [h_margin+working_width/8, row_4, 0]; pwm_cv_lvl = [second_col, fifth_row, 0]; //left_rib_x = thickness + 6 + tolerance; rail_depth = 27.4 + tolerance; rail_depth = 27.4 + tolerance; rotate_vector_cos = 0.94; // 'x' of 20 degree rotation rotate_vector_sin = 0.34; // 'y' of rotation left_edge = -rotate_vector_sin * rail_depth; right_edge = height - v_margin*2 - title_font_size; working_increment = working_height / 6; // generally-useful spacing amount for vertical columns of stuff working_height = height - v_margin*2 - title_font_size; Experimenting with more representative footprints. Consider adding a switch } else { // only keep everything starting at the top edge smoothing // thanks to http://www.iheartrobotics.com/ for the sake of code complexity. Odd values are -=1 } module knurled_finish(ord, ird, lf, sh, fn, rn) { for(j=[0:rn-1]) assign(h0=sh*j, h1=sh*(j+1/2), h2=sh*(j+1)) { for(i=[0:fn-1]) assign(lf0=lf*i, lf1=lf*(i+1/2), lf2=lf*(i+1)) { polyhedron( points=[ [ 0,0,h0], [ ord*cos(lf0), ord*sin(lf0), h2], [ ird*cos(lf1), ird*sin(lf1), h2], [ ird*cos(lf1), ird*sin(lf1), h0], [ ird*cos(lf0), ird*sin(lf0), h1], [ ird*cos(lf2), ird*sin(lf2), h1], [ ord*cos(lf1), ord*sin(lf1), h1], [ ird*cos(lf2), ird*sin(lf2), h1], [ ord*cos(lf1), ord*sin(lf1), h1], [ ord*cos(lf1), ord*sin(lf1), h1], [ 0,0,h2], [ ord*cos(lf0), ord*sin(lf0), h2.

New Pull Request