chiark / gitweb /
pawn: break d into d and dx (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 16 Dec 2015 01:13:26 +0000 (01:13 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 16 Dec 2015 01:13:26 +0000 (01:13 +0000)
pawn.scad

index 62baa7c2b6542c446d126f1f3dc6941021a421fd..e8c4ae1287663c5a2487ed99438a2a41b5cb7e33 100644 (file)
--- a/pawn.scad
+++ b/pawn.scad
@@ -33,12 +33,13 @@ htotal = r1 - z6;
 echo("height", htotal);
 
 d = 0.01;
 echo("height", htotal);
 
 d = 0.01;
+dx = 0.01;
 
 $fa=2;
 $fs=0.2;
 
 module SegmentBasisSquare(zmin, zmax, xmin){
 
 $fa=2;
 $fs=0.2;
 
 module SegmentBasisSquare(zmin, zmax, xmin){
-  translate([xmin, zmin-d]) square([-xmin+d, zmax-zmin+d*2]);
+  translate([xmin, zmin-d]) square([-xmin+dx, zmax-zmin+d*2]);
 }
 module ConvexSegment(xc, zc, r, zmin, zmax){
   intersection(){
 }
 module ConvexSegment(xc, zc, r, zmin, zmax){
   intersection(){
@@ -61,8 +62,8 @@ module PawnTemplate(){
   ConvexSegment(  xc5,      zc5,  r5, z5, z4);
   polygon([[x6, z6],
           [x5, z5+d],
   ConvexSegment(  xc5,      zc5,  r5, z5, z4);
   polygon([[x6, z6],
           [x5, z5+d],
-          [d, z5+d],
-          [d, z6]]);
+          [dx, z5+d],
+          [dx, z6]]);
 }
 
 module Pawn(h=htotal){
 }
 
 module Pawn(h=htotal){