Open zengfanfan opened 2 months ago
Ok will check. You can also upload files, instead of copying the content....
Reproduced in older version.
It treats z0
as non number.
Moving z0
to new line also fixes [Min X]
In your example the difference is G0/G1:
example 1: g0 x-1y0z0
example 2: g1 z0
G0 is a fast movement and therefore not part of a contour of the object = not relevant for the dimension. Only the movements G1, G2 and G3 are used to calculate the dimension.
I don't remember why I did it this way: dimension was only updated for Z, when z-position is not actual grbl z-position:
if (posWasSet && (newLine.actualPos.Z != Grbl.posWork.Z)) { xyzSize.SetDimensionZ(newLine.actualPos.Z); }
Is fixed now, I make a new release after finishing other changes...
ok. looking forawd to it.
Describe the bug When open a g-code file, the minimal Z value is not right. ( should be 0, but we got 10)
Screenshots
the g-code file bug.gcode.txt