diff options
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); |