flip qr code over so more apps can read it
authordaniel watson <ozzloy@gmail.com>
Sun, 15 Dec 2013 07:51:48 +0000 (23:51 -0800)
committerdaniel watson <ozzloy@gmail.com>
Sun, 15 Dec 2013 07:51:48 +0000 (23:51 -0800)
3d-printables/qr.scad

index 2e664f7959a4ddb13d5978d7ce23088dd4652bba..5be39cce70a1ec26a4b8bf5496c1b1640fafc4f2 100644 (file)
@@ -49,8 +49,8 @@ module qr(){
     else {
       cube([x, y, z*bit]);}}
 
-  scale([1, 1, 1]) translate([-block_size*matrix_cols/2, block_size*(matrix_rows/2-1), 0]) {
-    translate([0, 0, 1]) {
+  rotate([180, 0, 0]){
+    translate([-block_size*matrix_cols/2, block_size*(matrix_rows/2-1), 0]){
       for(i = [0 : matrix_rows-1]) {
         for(j = [0 : matrix_cols-1]) {
           if(matrix[i][j] != 0) {
@@ -72,6 +72,7 @@ module qr(){
                       block_size+fudge,
                       block_z,
                       2d);}}}}}}}}
+
 module qr_black_flat(){
   qr();}
 module qr_black(){