chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c387b8
)
add echo of square width and height to ensure they're +ve
openscad-bug-2012-10-03
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 3 Oct 2012 20:38:47 +0000
(21:38 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 3 Oct 2012 20:38:47 +0000
(21:38 +0100)
pawn.scad
patch
|
blob
|
history
diff --git
a/pawn.scad
b/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(){