Skip to content
Snippets Groups Projects
Commit caee5ed0 authored by René Bohne's avatar René Bohne Committed by Thomas Oster
Browse files

mirrored y coordinate, because iModela has origin in bottom left corner.

parent 018a7e98
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ public class IModelaMill extends LaserCutter
case MOVETO:
{
double x = Util.px2mm(c.getX(), dpi);
double y = Util.px2mm(c.getY(), dpi);
double y = getBedHeight() - Util.px2mm(c.getY(), dpi); //mill origin is bottom left, so we have to mirror y coordinates
if (headDown)
{
out.println("G00 Z0");
......@@ -115,7 +115,7 @@ public class IModelaMill extends LaserCutter
case LINETO:
{
double x = Util.px2mm(c.getX(), dpi);
double y = Util.px2mm(c.getY(), dpi);
double y = getBedHeight() - Util.px2mm(c.getY(), dpi); //mill origin is bottom left, so we have to mirror y coordinates
if (!headDown || depth != olddepth)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment