1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00

rename param

This commit is contained in:
Justin Lin
2019-09-21 10:13:46 +08:00
parent 76306a2a80
commit 2129c09fb9
2 changed files with 3 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ module cube_character(head_size) {
body(); body();
translate([0, head_size * 0.75]) translate([0, head_size * 0.75])
connector_peg(peg_radius, spacing = spacing, heads = true); connector_peg(peg_radius, spacing = spacing, ends = true);
} }
// refactored from https://www.thingiverse.com/thing:258542 // refactored from https://www.thingiverse.com/thing:258542

View File

@@ -1,4 +1,4 @@
module connector_peg(radius, height, spacing = 0.5, void = false, heads = false) { module connector_peg(radius, height, spacing = 0.5, void = false, ends = false) {
lip_r = radius * 1.2; lip_r = radius * 1.2;
r_diff = lip_r - radius; r_diff = lip_r - radius;
@@ -46,7 +46,7 @@ module connector_peg(radius, height, spacing = 0.5, void = false, heads = false)
} }
} }
if(heads) { if(ends) {
translate([0, 0, h]) { translate([0, 0, h]) {
head(); head();
mirror([0, 0, 1]) head(); mirror([0, 0, 1]) head();