Polyline approximation with arcs and segments.
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.
Cite As
Honorio Salmeron (2024). Polyline approximation with arcs and segments. (https://www.mathworks.com/matlabcentral/fileexchange/68439-polyline-approximation-with-arcs-and-segments), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Fit circle through 3 points, Circle Fit (Taubin method)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.