add metal rod lengths + doc update
This commit is contained in:
parent
3716a751bb
commit
6666f1760a
@ -8,11 +8,14 @@
|
||||
*/
|
||||
|
||||
// To visualize the whole SMA
|
||||
open_sma();
|
||||
//open_sma();
|
||||
|
||||
// To render only one attach or the support, ready to print
|
||||
//ready_to_print(5);
|
||||
|
||||
// To echo le metal rod length for i-th microphone:
|
||||
//studs(0);
|
||||
|
||||
// EDIT BELOW
|
||||
//$fn=128; //for final render
|
||||
|
||||
@ -145,11 +148,13 @@ module studs(id_mic, rstud=1.75){
|
||||
for (i=[0:len(neighbors[id_mic])-1]){
|
||||
neighbor = sph2cart([r[neighbors[id_mic][i]], theta[neighbors[id_mic][i]], phi[neighbors[id_mic][i]]]);
|
||||
rtp2=cart2sph(neighbor-center);
|
||||
h = norm(neighbor-center)-2*16;
|
||||
echo("Metal rod length:", h);
|
||||
translate(center)
|
||||
rotate([0, rtp2[1], rtp2[2]])
|
||||
color("blue")
|
||||
color("blue")
|
||||
translate([0,0,16])
|
||||
cylinder(r=rstud,h=norm(neighbor-center)-2*16);
|
||||
cylinder(r=rstud,h=h);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user