Cutting plugin give division by zero error

Quote from Paul on January 29, 2018, 12:11 amI noticed that when I create cutting vector files, I sometimes get an error saying in the Biarc function, line 1809 division by zero, float.
### Biarc function
###
### Calculates biarc approximation of cubic super path segment
### splits segment if needed or approximates it with straight line
I fixed the error when the approximation gets to close to zero by assigning a small value to it 0.002 and it works like a charm.
Please find attached the beta 2 plugins for those who want to test them.
[wpdm_package id='2490']
[wpdm_package id='2490']
I noticed that when I create cutting vector files, I sometimes get an error saying in the Biarc function, line 1809 division by zero, float.
### Biarc function
###
### Calculates biarc approximation of cubic super path segment
### splits segment if needed or approximates it with straight line
I fixed the error when the approximation gets to close to zero by assigning a small value to it 0.002 and it works like a charm.
Please find attached the beta 2 plugins for those who want to test them.