This code is related to the method described on the publication "Polyline defined NC trajectories parametrization. A compact analysis and solution focused on 3D Printing." by Honorio Salmerón Valdivieso.
It also makes direct use of the code published by Taubin in https://es.mathworks.com/matlabcentral/fileexchange/22678-circle-fit-taubin-method
It simply finds an efficient distribution of arcs matching some tolerance requirements and merges them with the source polyline.
Honorio Salmeron (2019). Polyline approximation with arcs and segments. (https://www.mathworks.com/matlabcentral/fileexchange/68439-polyline-approximation-with-arcs-and-segments), MATLAB Central File Exchange. Retrieved .
Re-uploading the files.