chiark / gitweb /
add echo of square width and height to ensure they're +ve
[reprap-play.git] / pawn.scad
index 98b5f66cb9119e2b3f8e649ff268264ed8d68335..abf2a61292702c9bbd0ccde7eba1ea6f7651cd2d 100644 (file)
--- a/pawn.scad
+++ b/pawn.scad
@@ -38,7 +38,10 @@ $fa=1;
 $fs=0.1;
 
 module SegmentBasisSquare(zmin, zmax, xmin){
-  translate([xmin, zmin-d]) square([-xmin+d, zmax-zmin+d*2]);
+  sqw = -xmin+d;
+  sqh = zmax-zmin+d*2;
+  echo(sqw,sqh);
+  translate([xmin, zmin-d]) square([sqw, sqh]);
 }
 module ConvexSegment(xc, zc, r, zmin, zmax){
   intersection(){