- intersection(){
- union(){
- ConvexSegment(x1 + r1, z1, r1, z1, 50);
- ConvexSegment(x1 + r2, z1, r2, z2, z1);
- translate([x5 + r5 * cos(a6), z5]) circle(r=r5);
- polygon([[x6,z6-1],
- [x5,z5],
- [1,z5],
- [1,z6-1]]);
- difference(){
- translate([-50,z4]) square([52,z2-z4]);
-// circle(
+ ConvexSegment( x1 + r1, z1, r1, z1, 50);
+ ConvexSegment( x1 + r2, z1, r2, z2, z1);
+ ConcaveSegment( x3 - r3, z3, r3, z3, z2);
+ ConcaveSegment( x3 - r4, z3, r4, z4, z3);
+ ConvexSegment( xc5, zc5, r5, z5, z4);
+ polygon([[x6, z6],
+ [x5, z5+d],
+ [dx, z5+d],
+ [dx, z6]]);
+}
+
+module Pawn(h=htotal){
+ scale(h/htotal) {
+ rotate_extrude(convexity=10, $fn=50){
+ assign($fn=undef){
+ PawnTemplate();