Split Line Segments (Edges)
Version 0.6.1 (11.2 KB) by
Jiexian Ma
split line segments (edges) into smaller ones based on intersections between them
You can start with demo.m in the folder.
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 );
Cite As
Jiexian Ma (2025). Split Line Segments (Edges) (https://www.mathworks.com/matlabcentral/fileexchange/85123-split-line-segments-edges), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2020b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: geom2d
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.