chiark / gitweb /
laptop-camera-tripod-bracket: wip
[reprap-play.git] / laptop-camera-tripod-bracket.scad
diff --git a/laptop-camera-tripod-bracket.scad b/laptop-camera-tripod-bracket.scad
new file mode 100644 (file)
index 0000000..34da302
--- /dev/null
@@ -0,0 +1,26 @@
+// -*- C -*-
+
+laptop_w       = 310;
+laptop_th_rear  = 14;
+laptop_th_front = 11;
+
+include <utils.scad>
+
+bar_w = 20;
+bar_th = 10;
+flex_allow = 3;
+claw_th = 5;
+claw_overlap = 10;
+
+module ClawProfile(laptop_th){
+  laptop_zmin = bar_th + flex_allow;
+  laptop_zmax = laptop_zmin + laptop_th;
+  difference(){
+    rectfromto([-claw_overlap, 0],
+              [claw_th, laptop_zmax + claw_th]);
+    rectfromto([-claw_overlap-1, laptop_zmin ],
+              [ 0, laptop_zmax ]);
+  }
+}
+
+ClawProfile(laptop_th_front);