aboutsummaryrefslogtreecommitdiff
path: root/chess/pawn.scad
diff options
context:
space:
mode:
Diffstat (limited to 'chess/pawn.scad')
-rw-r--r--chess/pawn.scad17
1 files changed, 16 insertions, 1 deletions
diff --git a/chess/pawn.scad b/chess/pawn.scad
index b5aa39b..319a4a8 100644
--- a/chess/pawn.scad
+++ b/chess/pawn.scad
@@ -16,6 +16,21 @@
// - The side of the square should measure 5 to 6 cm.
// - Referring to 2.2 the side of a square should be at least twice the diameter of a pawn’s base (it means four paws on one square).
-cylinder(1, 1, 1)
+$fn = 8;
+total_height = 5;
+h = total_height;
+base_diameter = h / 2;
+bd = base_diameter;
+base_radius = bd / 2;
+br = base_radius;
+stem_radius = br / 4;
+sr = stem_radius;
+head_radius = 1;
+cylinder(1/2, br, br);
+translate([0, 0, 1/2])
+ cylinder(1/2, br, br / 2);
+cylinder(4, sr, sr);
+translate([0, 0, 4])
+ sphere(head_radius);