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
27 Downloads
Updated 7 Apr 2025

View License

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 Linux
Acknowledgements

Inspired by: geom2d

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
0.6.1

No update

0.6.0