chiark / gitweb /
sewing-table: RoundCorner: change definition to take left cnr too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 3 Jun 2017 18:51:39 +0000 (19:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 3 Jun 2017 18:51:39 +0000 (19:51 +0100)
We do not actually use this yet so nfc
When we do use it all existing call sites will become wrong

sewing-table.scad.m4

index ca06e6b926084b69233123584ca9c93f8df5a293..dc4e056bf0312da10d02803094436858bcb057ed 100644 (file)
@@ -238,10 +238,11 @@ module RoundEdge(left_cnr, right_cnr) {
 }
 
 module RoundCornerCut(ci) {
 }
 
 module RoundCornerCut(ci) {
-  // ci should be [this_cnr, right_cnr]
+  // ci should be [this_cnr, right_cnr, left_cnr]
   // where right_cnr is to the right (ie, anticlockwise)
   this_cnr = ci[0];
   right_cnr = ci[1];
   // where right_cnr is to the right (ie, anticlockwise)
   this_cnr = ci[0];
   right_cnr = ci[1];
+  left_cnr = ci[2];
   offr= round_cnr_rad - round_edge_rad;
   INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
     difference(){
   offr= round_cnr_rad - round_edge_rad;
   INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
     difference(){
@@ -255,6 +256,7 @@ module RoundCornerCut(ci) {
 module RoundCornerAdd(ci) {
   this_cnr = ci[0];
   right_cnr = ci[1];
 module RoundCornerAdd(ci) {
   this_cnr = ci[0];
   right_cnr = ci[1];
+  left_cnr = ci[2];
   bigr = round_cnr_rad - round_edge_rad;
   INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
     intersection(){
   bigr = round_cnr_rad - round_edge_rad;
   INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
     intersection(){