tool.WriteMoveTo(out, (float)x,(float)y);
}
// else line starts right here, do nothing.
} else {
// not the first point, draw.
if(tool.DrawIsOff()) tool.WriteOn(out);
if(j<polyLine.getVertexCount()-1 && dx*dx+dy*dy<tool.GetDiameter()/2.0) continue; // less than 1mm movement? Skip it.
tool.WriteMoveTo(out, (float)x,(float)y);
}
dxf_x2=x;
dxf_y2=y;