summaryrefslogtreecommitdiff
path: root/body/body_config.scad
diff options
context:
space:
mode:
Diffstat (limited to 'body/body_config.scad')
-rw-r--r--body/body_config.scad37
1 files changed, 37 insertions, 0 deletions
diff --git a/body/body_config.scad b/body/body_config.scad
new file mode 100644
index 0000000..44ab49f
--- /dev/null
+++ b/body/body_config.scad
@@ -0,0 +1,37 @@
+include <design.scad>
+
+// laser
+default_laser_d = 14;
+default_laser_l = 45;
+default_laser_holder_padding = [4, 1.5, 1.5];
+
+// d - laser body diameter
+// l - laser body length
+// padding - see `laser_holder_wo_holes` for details
+function laser_holder_size(
+ d = default_laser_d,
+ l = 45,
+ padding = default_laser_holder_padding) = ([d, l / 2, d] + padding * 2);
+
+// main frame size
+// in scanner coords
+// inner height is a bit random
+// TODO: choose constant size to use one frame for
+// many similar ranges
+main_frame_height_y = 150;
+main_frame_width_x = 34;
+main_frame_depth_z = 56;
+
+// wall and wall thickness
+$sbfwo = $scannerBodyFrontWallOffsetMm;
+$wawt = -$scannerBodyFrontWallOffsetMm + $scannerBodyWallThicknessMm;
+wt = $scannerBodyWallThicknessMm;
+wzo = $scannerBodyFrontWallOffsetMm;
+fwo = -wzo;
+back_wall_offset = fwo - main_frame_depth_z;
+bwo = back_wall_offset;
+top_wall_offset = -laser_holder_size()[2] / 2 + main_frame_height_y;
+two = top_wall_offset;
+
+// scanner coords
+fan_y_offset = 80; \ No newline at end of file