]> www.fi.muni.cz Git - things.git/blob - paul-trap-laser-holder.scad
switch holder.scad
[things.git] / paul-trap-laser-holder.scad
1 include <yenyalib.scad>
2
3 wall = 1.5;
4 strut_w = 15;
5 laser_h = 103;
6 laser_d = 12;
7 clip_cut_w = 4;
8
9         Tx(-strut_w/2) {
10                 Ty(laser_h/2)
11                         cube([strut_w, laser_h/2, wall]);
12                 Ty(laser_h-wall) difference() {
13                         cube([strut_w, wall, strut_w]);
14                         Tx(strut_w/2) Tz(strut_w/2) Rx(-90) Tz(-eps) cylinder(r = 2.5, h = wall+2*eps, $fn = 6);
15                 }
16         }
17         Mx() Tx(strut_w/2-wall)
18                 cube([wall, laser_h, strut_w]);
19         difference() {
20                 cylinder(r = laser_d/2+1.41*wall, h = strut_w, $fn = 4);
21                 Tz(-eps) cylinder(r = laser_d/2, h = strut_w+2*eps, $fn = 4);
22                 translate([-clip_cut_w/2, -laser_d, -eps])
23                         cube([clip_cut_w, 2*laser_d, strut_w+2*eps]);
24         }
25
26