// Original unbuilt concept. Units mm. No physical fit, strength or performance validation. // Part dimensions and assembly positions are editable below. STL exports were generated // by the companion Python mesh generator; OpenSCAD was not available for compile verification. // Teal component envelopes are optional references; exclude from fabrication. part="assembly"; // or exact part name show_envelopes=true; explode=0; // 0 assembled, 1 exploded $fn=64; function rr(l,w,r,n=8)=[for(q=[0:3],i=[0:n-1]) let(a=q*90+i*90/n, x=(q==0||q==3)?l/2-r:-l/2+r, y=(q<2)?w/2-r:-w/2+r) [x+r*cos(a),y+r*sin(a)]]; module shape(kind,d){ if(kind=="round") cylinder(d=d[0],h=d[1]); else if(kind=="ring") difference(){cylinder(d=d[0],h=d[2]);translate([0,0,-0.01])cylinder(d=d[1],h=d[2]+0.02);} else if(kind=="cup") difference(){cylinder(d=d[0],h=d[2]);translate([0,0,d[3]])cylinder(d=d[1],h=d[2]);} else if(kind=="slab")linear_extrude(d[3])polygon(rr(d[0],d[1],d[2])); else if(kind=="frame")linear_extrude(d[3])difference(){polygon(rr(d[0],d[1],d[2]));polygon(rr(d[0]-2*d[4],d[1]-2*d[4],max(.5,d[2]-d[4])));} else if(kind=="wedge")linear_extrude(d[2])polygon([[-d[0]/2,0],[d[0]/2,0],[d[0]/2,d[1]]]); else if(kind=="triangle")linear_extrude(d[6])polygon([[d[0],d[1]],[d[2],d[3]],[d[4],d[5]]]); } // base / concept_part d0=[200, 130, 16, 10]; pos0=[0, 0, 0]; // left_support / concept_part d1=[10, 80, 4, 18]; pos1=[-70, 0, 10]; // right_support / concept_part d2=[10, 80, 4, 18]; pos2=[70, 0, 10]; // coupon_envelope / component_envelope d3=[160, 70, 1, 3]; pos3=[0, 0, 28]; // cable_rest / concept_part d4=[24, 40, 6, 16, 4]; pos4=[0, 48, 10]; // head_contact_ring / concept_part d5=[38, 30, 2]; pos5=[0, 0, 31]; // head_shell / concept_part d6=[38, 32, 12]; pos6=[0, 0, 33]; // head_sensor_envelope / component_envelope d7=[20, 2]; pos7=[0, 0, 33]; // head_lid / concept_part d8=[38, 6, 2]; pos8=[0, 0, 45]; // head_cable_boss / concept_part d9=[10, 6, 6]; pos9=[0, 0, 47]; if(part=="base")shape("slab",d0); if(part=="assembly" && true)color([0.3058823529411765, 0.45098039215686275, 0.38823529411764707])translate(pos0+[0,0,explode*0])rotate([0, 0, 0])shape("slab",d0); if(part=="left_support")shape("slab",d1); if(part=="assembly" && true)color([0.7019607843137254, 0.8941176470588236, 0.7725490196078432])translate(pos1+[0,0,explode*8])rotate([0, 0, 0])shape("slab",d1); if(part=="right_support")shape("slab",d2); if(part=="assembly" && true)color([0.7019607843137254, 0.8941176470588236, 0.7725490196078432])translate(pos2+[0,0,explode*8])rotate([0, 0, 0])shape("slab",d2); if(part=="coupon_envelope")shape("slab",d3); if(part=="assembly" && show_envelopes)color([0.4745098039215686, 0.7137254901960784, 0.7372549019607844])translate(pos3+[0,0,explode*18])rotate([0, 0, 0])shape("slab",d3); if(part=="cable_rest")shape("frame",d4); if(part=="assembly" && true)color([0.9294117647058824, 0.6549019607843137, 0.4823529411764706])translate(pos4+[0,0,explode*12])rotate([0, 0, 0])shape("frame",d4); if(part=="head_contact_ring")shape("ring",d5); if(part=="assembly" && true)color([0.8941176470588236, 0.7843137254901961, 0.6352941176470588])translate(pos5+[0,0,explode*0])rotate([0, 0, 0])shape("ring",d5); if(part=="head_shell")shape("ring",d6); if(part=="assembly" && true)color([0.7019607843137254, 0.8941176470588236, 0.7725490196078432])translate(pos6+[0,0,explode*9])rotate([0, 0, 0])shape("ring",d6); if(part=="head_sensor_envelope")shape("round",d7); if(part=="assembly" && show_envelopes)color([0.4745098039215686, 0.7137254901960784, 0.7372549019607844])translate(pos7+[0,0,explode*14])rotate([0, 0, 0])shape("round",d7); if(part=="head_lid")shape("ring",d8); if(part=="assembly" && true)color([0.3058823529411765, 0.45098039215686275, 0.38823529411764707])translate(pos8+[0,0,explode*25])rotate([0, 0, 0])shape("ring",d8); if(part=="head_cable_boss")shape("ring",d9); if(part=="assembly" && true)color([0.9294117647058824, 0.6549019607843137, 0.4823529411764706])translate(pos9+[0,0,explode*32])rotate([0, 0, 0])shape("ring",d9);