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:
2495f94
)
sewing-table: some comments (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 May 2017 21:20:51 +0000
(22:20 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 May 2017 21:20:51 +0000
(22:20 +0100)
sewing-table.scad.m4
patch
|
blob
|
history
diff --git
a/sewing-table.scad.m4
b/sewing-table.scad.m4
index 2995d9fc7f17d4f6aacfc7d62bc21693394e84bc..3b628e4b681bd7456ecc93699db15e9c150c8574 100644
(file)
--- a/
sewing-table.scad.m4
+++ b/
sewing-table.scad.m4
@@
-143,6
+143,8
@@
module RoundEdge(left_cnr, right_cnr) {
}
module RoundCornerCut(ci) {
+ // ci should be [this_cnr, right_cnr]
+ // where right_cnr is to the right (ie, anticlockwise)
this_cnr = ci[0];
right_cnr = ci[1];
offr= round_cnr_rad - round_edge_rad;
@@
-292,6
+294,8
@@
module TestDemo(){ ////toplevel
}
function Rectangle_corners(c0, sz) =
+ // returns the corners of a rectangle from c0 to c0+sz
+ // if sz is positive, the corners are anticlockwise starting with c0
[ c0 + [ 0, 0 ],
c0 + [ sz[0], 0 ],
c0 + [ sz[0], sz[1] ],