You can start with demo.m in the folder.
If you have any questions or suggestions, feel free to send me an email.
mjx0799@gmail.com, Jan 2021.
Jiexian Ma (2021). Split Line Segments (Edges) (https://www.mathworks.com/matlabcentral/fileexchange/85123-split-line-segments-edges), MATLAB Central File Exchange. Retrieved .
Inspired by: geom2d
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Those duplicated line segments in the output of function splitEdges can be removed by the following code:
unique_edges = uniquetol(edges, 10^-5, 'ByRows', true );