Candle
Candle copied to clipboard
Part of the toolpath for G3 is not displayed
Versions
- Candle version: 1.1.7, 1.2.13b
PC info
- OS: Windows 10 x64
Describe the bug Part of the toolpath for G3 is not displayed
To Reproduce Code:
G90
G21
M0
G0 Z5.00
G0 X0.00 Y0.00
G0 Z5.00
G0 X0.00 Y9.80
G0 Z1.00
G3 X0.00 Y-9.80 Z0.00 R9.80 F150.00
G3 X0.00 Y9.80 Z-1.00 R9.80 F150.00
G3 X0.00 Y-9.80 R9.80 F300.00
G3 X0.00 Y9.80 R9.80
G1 X0.00 Y12.40 F300.00
G3 X0.00 Y-12.40 R12.40 F300.00
G3 X0.00 Y12.40 R12.40
G1 X0.00 Y13.00 F300.00
G3 X0.00 Y-13.00 R13.00 F300.00
G3 X0.00 Y13.00 R13.00
G0 Z5.00
Lines 9-12 not displayed in toolpath preview.
Сode:
G90
G21
M0
G0 Z5.00
G0 X0.00 Y0.00
G0 Z5.00
G0 X0.00 Y9.80
G0 Z1.00
G3 X0.00 Y-9.80 Z0.00 R9.80 F150.00
G3 X0.00 Y9.80 Z-1.00 R9.80 F150.00
G3 X0.00 Y-9.80 R9.80 F300.00
G3 X0.00 Y9.80 R9.80
G1 X0.00 Y11.80 F300.00
G3 X0.00 Y-11.80 R11.80 F300.00
G3 X0.00 Y11.80 R11.80
G1 X0.00 Y13.00 F300.00
G3 X0.00 Y-13.00 R13.00 F300.00
G3 X0.00 Y13.00 R13.00
G0 Z5.00
Lines 9-12 and lines 14-15 not displayed in toolpath preview.
Additional context But there is no issues with this code:
G90
G21
M0
G0 Z5.00
G0 X0.00 Y0.00
G0 Z5.00
G0 X0.00 Y9.90
G0 Z1.00
G3 X0.00 Y-9.90 Z0.00 R9.90 F150.00
G3 X0.00 Y9.90 Z-1.00 R9.90 F150.00
G3 X0.00 Y-9.90 R9.90 F300.00
G3 X0.00 Y9.90 R9.90
G1 X0.00 Y12.50 F300.00
G3 X0.00 Y-12.50 R12.50 F300.00
G3 X0.00 Y12.50 R12.50
G1 X0.00 Y13.00 F300.00
G3 X0.00 Y-13.00 R13.00 F300.00
G3 X0.00 Y13.00 R13.00
G0 Z5.00
Everything shows correctly
Hello,
It seems the line 9 G3 X0.00 Y-9.80 Z0.00 R9.80 F150.00
expected to be an arc from (0.0, 9.8, 1.0)
to (0.0, -9.8, 0.0)
.
- the
R9.80
is wrong because the distance between two points issqrt(385.16) = 19.625..
which is bigger than2*R
. - there is a bug in convertRToCenter() function:
z
coordinate ofcenter
is always0
(this why the code from "Additional context" shows arcs). - G2 & G3 with radius specification may work only in single defined plain (XY, XZ or YZ).
So, I would suggest to specify an arc center with I
, J
, K
parameters instead of arc radius R
: G3 X0.00 Y-9.80 Z0.00 J-9.8 K-0.5 F150.00
.