From 5e1d94cb300fddf8d05db944bb979eb042a75688 Mon Sep 17 00:00:00 2001 From: Mitsuhito Ando Date: Mon, 12 Sep 2016 03:28:25 +0900 Subject: [PATCH] update ofxDxfReader.h fix coordinates --- src/ofxDxfReader.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ofxDxfReader.h b/src/ofxDxfReader.h index 89bc7a6..9e49953 100644 --- a/src/ofxDxfReader.h +++ b/src/ofxDxfReader.h @@ -63,9 +63,10 @@ class ofxDxfReader : public DL_CreationAdapter //-x --+-- +x // | // -y - - path.lineTo(data.x1, data.y1, data.z1); - path.lineTo(data.x2, data.y2, data.z2); + //path.lineTo(data.x1, data.y1, data.z1); + //path.lineTo(data.x2, data.y2, data.z2); + path.lineTo(data.x1, fabs(data.y1), data.z1); + path.lineTo(data.x2, fabs(data.y2), data.z2); // // TODO(ando@ycam.jp): grab color infomation to determine cutting path or just moving the head.