From 2a7bb41a790637483ab8ac52d6970174ed4c9056 Mon Sep 17 00:00:00 2001
From: Fabian <fabian.neumann@ima-zlw-ifu.rwth-aachen.de>
Date: Fri, 2 Mar 2018 17:29:14 +0100
Subject: [PATCH] - added samples - disabled debug - still not clean - still
 binary problems

---
 js/main.js                  |   8 +++++++-
 other/print.wow             | Bin 0 -> 820951 bytes
 other/self_sliced_print.wow | Bin 0 -> 982185 bytes
 other/slices/1.txt          | Bin 0 -> 51240 bytes
 other/slices/10.txt         | Bin 0 -> 51240 bytes
 other/slices/11.txt         | Bin 0 -> 51240 bytes
 other/slices/12.txt         | Bin 0 -> 51240 bytes
 other/slices/13.txt         | Bin 0 -> 51240 bytes
 other/slices/14.txt         | Bin 0 -> 51240 bytes
 other/slices/15.txt         | Bin 0 -> 51240 bytes
 other/slices/16.txt         | Bin 0 -> 51240 bytes
 other/slices/2.txt          | Bin 0 -> 51240 bytes
 other/slices/3.txt          | Bin 0 -> 51240 bytes
 other/slices/4.txt          | Bin 0 -> 51240 bytes
 other/slices/5.txt          | Bin 0 -> 51240 bytes
 other/slices/6.txt          | Bin 0 -> 51240 bytes
 other/slices/7.txt          | Bin 0 -> 51240 bytes
 other/slices/8.txt          | Bin 0 -> 51240 bytes
 other/slices/9.txt          | Bin 0 -> 51240 bytes
 19 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 other/print.wow
 create mode 100644 other/self_sliced_print.wow
 create mode 100644 other/slices/1.txt
 create mode 100644 other/slices/10.txt
 create mode 100644 other/slices/11.txt
 create mode 100644 other/slices/12.txt
 create mode 100644 other/slices/13.txt
 create mode 100644 other/slices/14.txt
 create mode 100644 other/slices/15.txt
 create mode 100644 other/slices/16.txt
 create mode 100644 other/slices/2.txt
 create mode 100644 other/slices/3.txt
 create mode 100644 other/slices/4.txt
 create mode 100644 other/slices/5.txt
 create mode 100644 other/slices/6.txt
 create mode 100644 other/slices/7.txt
 create mode 100644 other/slices/8.txt
 create mode 100644 other/slices/9.txt

diff --git a/js/main.js b/js/main.js
index d0fcda2..dabbf40 100644
--- a/js/main.js
+++ b/js/main.js
@@ -221,6 +221,10 @@ function getSlice(layerNumber) {
                         pixel++;
                     }
                 }
+                /*
+                for(var i=0*array.length; i<1/4*array.length; i++){
+                    array[i]=255;
+                }*/
                 //console.log('array :', array);
                 //var fileName = layerNumber + '.txt';
                 //zipFolder.file(fileName, array, {type: 'text/plain'});
@@ -233,6 +237,7 @@ function getSlice(layerNumber) {
                     ";\nG1 Z-"+(settings.get('slicer.lifting.height')-settings.get('slicer.layers.height')/1000)+
                     " F"+settings.get('slicer.lifting.speed')+";\n{{\n"
                 wowFile += (new TextDecoder("utf-8")).decode(array)+"\n"
+                // Backup text file
                 zipFolder.file(layerNumber+".txt", array);
                 // GCode logic
                 wowFile += "}}\nM106 S255;\nG4 S"+settings.get('slicer.light.on')/1000+";\n"
@@ -676,6 +681,7 @@ function endSlicing() {
 
     // GCode logic
     wowFile += "M106 S0;\nG1 Z20.0;\nG4 S300;\nM18;"
+    /*
     wowFile += "\n"
     var array = new Uint8Array(5);
     array[0] = 255;
@@ -692,7 +698,7 @@ function endSlicing() {
     //wowFile += (new TextDecoder("utf8.bin")).decode(array)+"\n"
     //wowFile += (new TextDecoder("utf16le.bin")).decode(array)+"\n"
     //wowFile += (new TextDecoder("utf-16le")).decode(array)+"\n"
-
+*/
 
     zipFile.file("print.wow", wowFile);
 
diff --git a/other/print.wow b/other/print.wow
new file mode 100644
index 0000000000000000000000000000000000000000..30876dca994462274772635be3c3218bba6ed8d5
GIT binary patch
diff --git a/other/self_sliced_print.wow b/other/self_sliced_print.wow
new file mode 100644
index 0000000000000000000000000000000000000000..275fed2811bce555d0aeaa0c1d07c1817aeccb66
GIT binary patch
diff --git a/other/slices/1.txt b/other/slices/1.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c3f753559ea786e10622725618304e49b35075c5
GIT binary patch
diff --git a/other/slices/10.txt b/other/slices/10.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8bcf39fa6953cae11709e2e9c49d031612434c00
GIT binary patch
diff --git a/other/slices/11.txt b/other/slices/11.txt
new file mode 100644
index 0000000000000000000000000000000000000000..495161cbc844ab320ae990d026bcee8ee159a916
GIT binary patch
diff --git a/other/slices/12.txt b/other/slices/12.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e31606222f5954ad78a3a8e5238f0a328e7e48dd
GIT binary patch
diff --git a/other/slices/13.txt b/other/slices/13.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b2f1bb29cf808ecb82315a2c2f2ba1fe2b671647
GIT binary patch
diff --git a/other/slices/14.txt b/other/slices/14.txt
new file mode 100644
index 0000000000000000000000000000000000000000..21e46dea724e9875f91eb894b3dd5f90e254d6b5
GIT binary patch
diff --git a/other/slices/15.txt b/other/slices/15.txt
new file mode 100644
index 0000000000000000000000000000000000000000..85ac93c687cebf8e474640ea5c601b7be76803be
GIT binary patch
diff --git a/other/slices/16.txt b/other/slices/16.txt
new file mode 100644
index 0000000000000000000000000000000000000000..0a94909520a670b572e7d579b6f1ab3329a467a9
GIT binary patch
diff --git a/other/slices/2.txt b/other/slices/2.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c3f753559ea786e10622725618304e49b35075c5
GIT binary patch
diff --git a/other/slices/3.txt b/other/slices/3.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c3f753559ea786e10622725618304e49b35075c5
GIT binary patch
diff --git a/other/slices/4.txt b/other/slices/4.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c3f753559ea786e10622725618304e49b35075c5
GIT binary patch
diff --git a/other/slices/5.txt b/other/slices/5.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c3f753559ea786e10622725618304e49b35075c5
GIT binary patch
diff --git a/other/slices/6.txt b/other/slices/6.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d10e4af90e4d0749a008edb74f81b967b5c9eaea
GIT binary patch
diff --git a/other/slices/7.txt b/other/slices/7.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e0f2344113d8b93c6bdda86090097b07e9a87fdb
GIT binary patch
diff --git a/other/slices/8.txt b/other/slices/8.txt
new file mode 100644
index 0000000000000000000000000000000000000000..0dbe9f6e44fad74a59551d8b349247e94b8b963e
GIT binary patch
diff --git a/other/slices/9.txt b/other/slices/9.txt
new file mode 100644
index 0000000000000000000000000000000000000000..143fda1d6970db35c9b89622c98cba519bbbae79
GIT binary patch
