x6 = x5 - h6 * tan(a6);
+htotal = r1 - z6;
+echo("height", htotal);
+
$fa=1;
$fs=0.1;
[0.01, z6]]);
}
-PawnTemplate();
+module Pawn(h=htotal){
+ scale(h/htotal) {
+ rotate_extrude($fn=100){
+ assign($fn=undef){
+ PawnTemplate();
+ }
+ }
+ }
+}
+
+Pawn(h=20);