diff options
author | Christian Hodgden <chrhodgden@gmail.com> | 2024-07-22 13:30:37 -0500 |
---|---|---|
committer | Christian Hodgden <chrhodgden@gmail.com> | 2024-07-22 13:30:37 -0500 |
commit | 503a2f6822f5cb50ccd0d735cf0e24f98a1b7b43 (patch) | |
tree | 9755c707bc9eebf2a2b7b2708938e0c98a92d09d /chess | |
parent | e0c262e2dcbe202f81af3b584933240c069d62e6 (diff) |
touched up pawn model
Diffstat (limited to 'chess')
-rw-r--r-- | chess/pawn.scad | 22 | ||||
-rw-r--r-- | chess/pawn.stl | bin | 0 -> 7884 bytes |
2 files changed, 11 insertions, 11 deletions
diff --git a/chess/pawn.scad b/chess/pawn.scad index 319a4a8..49f2da4 100644 --- a/chess/pawn.scad +++ b/chess/pawn.scad @@ -18,19 +18,19 @@ $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; +base_diameter = total_height / 2; +base_radius = base_diameter / 2; +base_height = 1; +stem_radius = base_radius / 4; +stem_base_radius = base_radius / 2; head_radius = 1; +stem_height = total_height - base_height - head_radius; -cylinder(1/2, br, br); -translate([0, 0, 1/2]) - cylinder(1/2, br, br / 2); -cylinder(4, sr, sr); +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]) sphere(head_radius); diff --git a/chess/pawn.stl b/chess/pawn.stl Binary files differnew file mode 100644 index 0000000..6bcf56a --- /dev/null +++ b/chess/pawn.stl |