From e0c262e2dcbe202f81af3b584933240c069d62e6 Mon Sep 17 00:00:00 2001 From: Christian Hodgden Date: Mon, 22 Jul 2024 14:34:53 +0000 Subject: initial pawn design --- chess/pawn.scad | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3