From 5a0f9ad7d8e1fda08ecc0358e95aa0f2090bc48c Mon Sep 17 00:00:00 2001
From: amandaghassaei <amandaghassaei@gmail.com>
Date: Thu, 19 Mar 2015 13:38:48 -0400
Subject: [PATCH] rapid height bug

---
 js/cam/Assembler.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/js/cam/Assembler.js b/js/cam/Assembler.js
index e618d88b..e1554f81 100644
--- a/js/cam/Assembler.js
+++ b/js/cam/Assembler.js
@@ -203,7 +203,7 @@ Assembler = Backbone.Model.extend({
         var rapidHeight = this.get("rapidHeight");
         var safeHeight = this.get("safeHeight");
         var wcs = this.get("originPosition");
-        data += exporter.moveZ(rapidHeight+wcs.z);
+        data += exporter.moveZ(rapidHeight);
         data += "\n";
 
         var stockPosition = this.get("stockPosition");
@@ -275,7 +275,7 @@ Assembler = Backbone.Model.extend({
         data += exporter.moveZ(stockPosition.z-wcs.z);
         data += exporter.addComment("get stock");
         data += exporter.moveZ(stockPosition.z-wcs.z+safeHeight);
-        data += exporter.rapidZ(rapidHeight+wcs.z);
+        data += exporter.rapidZ(rapidHeight);
         return data;
     },
 
@@ -287,7 +287,7 @@ Assembler = Backbone.Model.extend({
         data += exporter.moveZ(cellPosition.z-wcs.z);
         data += exporter.addComment(JSON.stringify(cell.indices));
         data += exporter.moveZ(cellPosition.z-wcs.z+safeHeight);
-        data += exporter.rapidZ(rapidHeight+wcs.z);
+        data += exporter.rapidZ(rapidHeight);
         return data;
     },
 
-- 
GitLab