// 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_ring / concept_part d0=[120, 108, 4]; pos0=[0, 0, 0]; // guard / concept_part d1=[120, 114, 30]; pos1=[0, 0, 4]; // rim / concept_part d2=[124, 108, 4]; pos2=[0, 0, 34]; // actuator_envelope / component_envelope d3=[101, 22]; pos3=[0, 0, 4]; if(part=="base_ring")shape("ring",d0); if(part=="assembly" && true)color([0.8941176470588236, 0.7843137254901961, 0.6352941176470588])translate(pos0+[0,0,explode*0])rotate([0, 0, 0])shape("ring",d0); if(part=="guard")shape("ring",d1); if(part=="assembly" && true)color([0.7019607843137254, 0.8941176470588236, 0.7725490196078432])translate(pos1+[0,0,explode*12])rotate([0, 0, 0])shape("ring",d1); if(part=="rim")shape("ring",d2); if(part=="assembly" && true)color([0.3058823529411765, 0.45098039215686275, 0.38823529411764707])translate(pos2+[0,0,explode*22])rotate([0, 0, 0])shape("ring",d2); if(part=="actuator_envelope")shape("round",d3); if(part=="assembly" && show_envelopes)color([0.4745098039215686, 0.7137254901960784, 0.7372549019607844])translate(pos3+[0,0,explode*16])rotate([0, 0, 0])shape("round",d3);