diff options
author | Christian Hodgden <chrhodgden@gmail.com> | 2024-07-22 14:34:53 +0000 |
---|---|---|
committer | Christian Hodgden <chrhodgden@gmail.com> | 2024-07-22 14:34:53 +0000 |
commit | e0c262e2dcbe202f81af3b584933240c069d62e6 (patch) | |
tree | d3ed19e61ad0ccde6d2d0110f1c3c73f435522e1 | |
parent | b4d636a7668287070bcdb75fd4768880184afb67 (diff) |
initial pawn design
-rw-r--r-- | chess/pawn.scad | 17 |
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); |