Merge pull request #150 from rsheldiii/v2/resin

Resin settings, some tines support tweaks
This commit is contained in:
Bob 2022-02-22 00:39:26 -05:00 committed by GitHub
commit dbe5bca1a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 11 deletions

View File

@ -1188,7 +1188,7 @@ module upside_down() {
module sideways() { module sideways() {
$key_shape_type = "flat_sided_square"; $key_shape_type = "flat_sided_square";
$dish_overdraw_width = abs(extra_keytop_length_for_flat_sides()); $dish_overdraw_width = abs(extra_keytop_length_for_flat_sides());
extra_y_rotation = atan2($width_difference/2,$total_depth); extra_y_rotation = atan2($width_difference/2,$total_depth); // TODO assumes centered top
translate([0,0,cos(extra_y_rotation) * total_key_width()/2]) translate([0,0,cos(extra_y_rotation) * total_key_width()/2])
rotate([0,90 + extra_y_rotation ,0]) children(); rotate([0,90 + extra_y_rotation ,0]) children();
} }
@ -1216,7 +1216,14 @@ module auto_place() {
translate_u(x,-y) children(child_index); translate_u(x,-y) children(child_index);
} }
} }
module arrows(profile, rows = [4,4,4,3]) {
// suggested settings for resin prints
module resin() {
$stem_slop = 0;
$stem_inner_slop = 0;
$stem_support_type = "disable";
children();
}module arrows(profile, rows = [4,4,4,3]) {
positions = [[0, 0], [1, 0], [2, 0], [1, 1]]; positions = [[0, 0], [1, 0], [2, 0], [1, 1]];
legends = ["←", "↓", "→", "↑"]; legends = ["←", "↓", "→", "↑"];
@ -3358,7 +3365,7 @@ function unit_length(length) = $unit * (length - 1) + 18.16;
// extra length to the vertical tine of the inside cherry cross // extra length to the vertical tine of the inside cherry cross
// splits the stem into halves - allows easier fitment // splits the stem into halves - allows easier fitment
extra_vertical = 0.6; extra_vertical = 100;
module inside_cherry_cross(slop) { module inside_cherry_cross(slop) {
// inside cross // inside cross
@ -3544,7 +3551,7 @@ function unit_length(length) = $unit * (length - 1) + 18.16;
// extra length to the vertical tine of the inside cherry cross // extra length to the vertical tine of the inside cherry cross
// splits the stem into halves - allows easier fitment // splits the stem into halves - allows easier fitment
extra_vertical = 0.6; extra_vertical = 100;
module inside_cherry_cross(slop) { module inside_cherry_cross(slop) {
// inside cross // inside cross
@ -3740,7 +3747,7 @@ function unit_length(length) = $unit * (length - 1) + 18.16;
// extra length to the vertical tine of the inside cherry cross // extra length to the vertical tine of the inside cherry cross
// splits the stem into halves - allows easier fitment // splits the stem into halves - allows easier fitment
extra_vertical = 0.6; extra_vertical = 100;
module inside_cherry_cross(slop) { module inside_cherry_cross(slop) {
// inside cross // inside cross
@ -4099,7 +4106,7 @@ function unit_length(length) = $unit * (length - 1) + 18.16;
// extra length to the vertical tine of the inside cherry cross // extra length to the vertical tine of the inside cherry cross
// splits the stem into halves - allows easier fitment // splits the stem into halves - allows easier fitment
extra_vertical = 0.6; extra_vertical = 100;
module inside_cherry_cross(slop) { module inside_cherry_cross(slop) {
// inside cross // inside cross
@ -4342,7 +4349,7 @@ function unit_length(length) = $unit * (length - 1) + 18.16;
// extra length to the vertical tine of the inside cherry cross // extra length to the vertical tine of the inside cherry cross
// splits the stem into halves - allows easier fitment // splits the stem into halves - allows easier fitment
extra_vertical = 0.6; extra_vertical = 100;
module inside_cherry_cross(slop) { module inside_cherry_cross(slop) {
// inside cross // inside cross
@ -4411,7 +4418,7 @@ module tines_support(stem_type, stem_support_height, slop) {
} }
// 2 vertical tines holding either side of the cruciform // 2 vertical tines holding either side of the cruciform
for (x = [1.15, -1.15]) { for (x = [2, -2]) {
translate([x,0,$stem_support_height / 2]) { translate([x,0,$stem_support_height / 2]) {
cube([ cube([
0.5, 0.5,

View File

@ -195,7 +195,7 @@ module upside_down() {
module sideways() { module sideways() {
$key_shape_type = "flat_sided_square"; $key_shape_type = "flat_sided_square";
$dish_overdraw_width = abs(extra_keytop_length_for_flat_sides()); $dish_overdraw_width = abs(extra_keytop_length_for_flat_sides());
extra_y_rotation = atan2($width_difference/2,$total_depth); extra_y_rotation = atan2($width_difference/2,$total_depth); // TODO assumes centered top
translate([0,0,cos(extra_y_rotation) * total_key_width()/2]) translate([0,0,cos(extra_y_rotation) * total_key_width()/2])
rotate([0,90 + extra_y_rotation ,0]) children(); rotate([0,90 + extra_y_rotation ,0]) children();
} }
@ -223,3 +223,11 @@ module auto_place() {
translate_u(x,-y) children(child_index); translate_u(x,-y) children(child_index);
} }
} }
// suggested settings for resin prints
module resin() {
$stem_slop = 0;
$stem_inner_slop = 0;
$stem_support_type = "disable";
children();
}

View File

@ -36,7 +36,7 @@ module tines_support(stem_type, stem_support_height, slop) {
} }
// 2 vertical tines holding either side of the cruciform // 2 vertical tines holding either side of the cruciform
for (x = [1.15, -1.15]) { for (x = [2, -2]) {
translate([x,0,$stem_support_height / 2]) { translate([x,0,$stem_support_height / 2]) {
cube([ cube([
0.5, 0.5,

View File

@ -2,7 +2,7 @@ include <../functions.scad>
// extra length to the vertical tine of the inside cherry cross // extra length to the vertical tine of the inside cherry cross
// splits the stem into halves - allows easier fitment // splits the stem into halves - allows easier fitment
extra_vertical = 0.6; extra_vertical = 100;
module inside_cherry_cross(slop) { module inside_cherry_cross(slop) {
// inside cross // inside cross