creepy-hand: final version
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 7 Apr 2019 02:32:41 +0000 (22:32 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 7 Apr 2019 02:32:41 +0000 (22:32 -0400)
Try to make a little nicer for sharing with the world at large.

creepy-hand/creepy-hand-split.scad

index e17725a..5e23f24 100644 (file)
@@ -9,29 +9,29 @@
 // want and ensure the spot you want to split it at is centered on the
 // origin.
 
+// TODO:
+// - allow setting a z offset percentage to shift holes more into upper
+//   or lower piece
+
 // Creepy hand from http://www.thingiverse.com/thing:8174 by whosawhatsis, used with permission (CC BY)
 // Modified by centering it on the origin (no actual changes)
 // Defaults are for #10 threaded rod (hardware store doesn't sell metric rod here)
-split_thing (part_spacing = 100, spacing = 25, bottom = false) {
-      scale ([2, 2, 2]) translate ([-2, 3, 0]) rotate ([0, 0, 40]) translate ([0, 0, 10]) import ("hand-centered.stl");
+split_thing (part_spacing = 100) {
+      scale ([model_scale, model_scale, model_scale]) translate ([-2, 3, 0]) rotate ([0, 0, 40]) translate ([0, 0, 10]) import ("hand-centered.stl");
 }
 
-// TODO:
-
-// - allow setting a z offset percentage to shift holes more into upper
-//   or lower piece
-
 default_rod_d = 5.1; // loose fit on #10 threaded rod
 default_depth = 20;
-default_position_depth = 10;
-default_spacing = 20;
+default_spacing = 25;
 max_model_dim = 1000;
+model_scale = 2;
 
+// [Hidden]
 $fa = 1;
 $fs = 1;
 
 // place child object, will be split on plane at z = 0
-module split_thing (top = true, bottom = true, rod_d = default_rod_d, depth = default_depth, position_depth = default_position_depth, spacing = default_spacing, part_spacing = 50) {
+module split_thing (top = true, bottom = true, rod_d = default_rod_d, depth = default_depth, spacing = default_spacing, part_spacing = 50) {
      module rod_mount () {
          module rod () {
               translate ([-spacing/2, 0, 0]) cylinder (d=rod_d, h=depth);
@@ -69,11 +69,3 @@ module split_thing (top = true, bottom = true, rod_d = default_rod_d, depth = de
      }
 
 }
-
-//split_thing (part_spacing = 50, depth = 7, position_depth = 4, spacing = 12) {
-//     translate ([-2, 2, 0]) rotate ([0, 0, 40]) translate ([0, 0, 10]) import ("hand-centered_preview.stl");
-//     cylinder (d=30, h=40, center=true);
-//     /*rotate ([0, 0, 40])*/ scale ([2, 2, 2]) import ("hand-centered_preview.stl");
-//      scale ([2, 2, 2]) rotate ([0, 0, 40]) translate ([0, 0, 10]) import ("hand-centered_preview.stl");
-//}
-