diff options
author | Christian Hodgden <chrhodgden@gmail.com> | 2024-07-24 14:24:12 +0000 |
---|---|---|
committer | Christian Hodgden <chrhodgden@gmail.com> | 2024-07-24 14:24:12 +0000 |
commit | f1ab4d72e04a99c52ae571493933a088797c7d0a (patch) | |
tree | 3b0f3b91e85f4170d317624262eafa1fcef24a86 /chess/pawn.scad | |
parent | dc72cafb0e1bcfeb2b18b03e595c6a1cfb30109f (diff) |
chess: pawn - added an optional collar parameter
I personally don't like it.
Diffstat (limited to 'chess/pawn.scad')
-rw-r--r-- | chess/pawn.scad | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chess/pawn.scad b/chess/pawn.scad index 49f2da4..40b70de 100644 --- a/chess/pawn.scad +++ b/chess/pawn.scad @@ -26,11 +26,17 @@ stem_base_radius = base_radius / 2; head_radius = 1; stem_height = total_height - base_height - head_radius; +// collar_check enables collar +collar_check = 0; +collar_radius = head_radius * collar_check; + cylinder(base_height/2, base_radius, base_radius); translate([0, 0, base_height/2]) cylinder(base_height, base_radius, 0); translate([0, 0, base_height]) cylinder(stem_height, stem_base_radius, stem_radius); -translate([0, 0, 4]) +translate([0, 0, total_height - head_radius]) sphere(head_radius); +translate([0, 0, total_height - (2 * head_radius)]) + cylinder(0.25, collar_radius, 0); |