Skip to content

Commit 773f4df

Browse files
committed
Lock flap dimensions to die-cut specs
1 parent 008593c commit 773f4df

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

3d/flap_dimensions.scad

+4
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@ flap_height = 43;
1919
flap_thickness = 30 / 1000 * 25.4; // 30 mil
2020
flap_corner_radius = 3.1; // 2.88-3.48mm (used just for display)
2121

22+
flap_notch_height_auto = false;
23+
flap_notch_height_default = 15;
24+
flap_notch_depth = 3.2;
25+
2226
flap_pin_width = 1.4;
2327

3d/splitflap.scad

+4-6
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ outer_exclusion_radius = flap_pitch_radius + flap_height + 2;
112112

113113
front_forward_offset = flap_pitch_radius + flap_thickness/2;
114114

115-
flap_notch = sqrt(spool_outer_radius*spool_outer_radius - flap_pitch_radius*flap_pitch_radius);
116-
flap_notch_depth = 3;
117-
115+
flap_notch_height = (flap_notch_height_auto == true) ? sqrt(spool_outer_radius*spool_outer_radius - flap_pitch_radius*flap_pitch_radius) : flap_notch_height_default;
118116

119117
spool_width = flap_width - flap_notch_depth*2 + flap_width_slop + thickness*2;
120118
legacyAssert(spool_width >= flap_width, "Flap is wider than spool!");
@@ -206,7 +204,7 @@ echo(front_window_height=front_window_lower+front_window_upper);
206204
echo(front_forward_offset=front_forward_offset);
207205
echo(flap_exclusion_radius=exclusion_radius);
208206
echo(flap_hole_radius=flap_hole_radius);
209-
echo(flap_notch=flap_notch);
207+
echo(flap_notch_height=flap_notch_height);
210208

211209

212210
module standard_m4_bolt(nut_distance=-1) {
@@ -354,9 +352,9 @@ module flap() {
354352
}
355353
}
356354
translate([-eps, flap_pin_width])
357-
square([eps + flap_notch_depth, flap_notch]);
355+
square([eps + flap_notch_depth, flap_notch_height]);
358356
translate([flap_width - flap_notch_depth, flap_pin_width])
359-
square([eps + flap_notch_depth, flap_notch]);
357+
square([eps + flap_notch_depth, flap_notch_height]);
360358
}
361359
}
362360
}

0 commit comments

Comments
 (0)